Function at 0x404cd0
Capabilities:
Check http status code
Check if file exists
Delete file
Download and write a file
Get http content length
Move file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Send http request with host header
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3dc
mov eax, dword [str._u]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov dword [esp + 0x3e0], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [esi + 0x4c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x34], eax
call fcn.00403620
push edi
lea ecx, [esp + 0x14]
call fcn.004047c0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x404d2d
push 3
push 0x41d4a4
lea ecx, [esp + 0x18]
call fcn.00403dd0
push ebx
mov ecx, esi
call fcn.004046c0
test eax, eax
jne 0x404d73
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404d57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80000001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x48]
xor edi, edi
cmp eax, edi
je 0x404d83
mov ecx, esi
call fcn.00403450
cmp dword [esi + 0x44], edi
je 0x404dcd
mov ecx, esi
call fcn.00403450
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x422978]
mov ecx, 0x422978
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
lea ebx, [esi + 0x28]
push 0x2f
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.00413064
add esp, 8
cmp eax, edi
jne 0x404e03
or eax, 0xffffffff
jmp 0x404e05
sub eax, dword [ebx]
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
inc eax
sub edx, eax
push edx
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.004042b0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
call fcn.004043b0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 1
cmp dword [eax - 0xc], edi
je 0x404e7f
mov eax, dword [esi + 0x50]
cmp eax, edi
je 0x404e7f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404e7f
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0x18]
push ecx
push edi
push 0xbd8
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00403740
test eax, eax
jne 0x404ee4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ea8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405751
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x44], edi
je 0x404f37
mov ecx, esi
call fcn.00403450
lea ecx, [esp + 0x18]
call fcn.00403ce0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x10], edi
mov ecx, 0x4400010
mov dword [esp + 0x54], ecx
jne 0x404f4e
mov ecx, 0x4600010
mov dword [esp + 0x54], ecx
mov eax, dword [ebx]
push edi
push ecx
push 0x421524
push edi
push str.HTTP_1.0
push eax
mov eax, dword [esi + 8]
push 0x41d46c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x405339
xor eax, eax
mov byte [esp + 0x2d0], 0
mov ecx, 0x43
lea edi, [esp + 0x2d1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x34]
test edi, edi
je 0x404fd6
push str.Host:
lea ecx, [esp + 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea edx, [esp + 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esi + 0xc]
push 0x20000000
push 0xffffffffffffffff
lea eax, [esp + 0x2d8]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
xor eax, eax
lea edx, [esp + 0x44]
mov byte [esp + 0x1b0], 0
mov ecx, 0x10
lea edi, [esp + 0x1b1]
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x40508f
xor eax, eax
mov dword [esp + 0x70], 0
mov ecx, 0x4f
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40508f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0x20], eax
jbe 0x40507c
push eax
lea eax, [esp + 0x1b4]
push str.Range:_bytes_d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x58], 1
jmp 0x40508f
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4050a2
mov ecx, esi
call fcn.00403450
jmp 0x4057b4
push 0
push 0
lea ecx, [esp + 0x1b8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x1bc]
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x405154
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00403450
mov esi, dword [esi + 0x54]
sub esi, 0x2ee2
je 0x405126
sub esi, 5
je 0x4050f8
sub esi, 0x16
jne 0x40573f
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 0x80000008
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 0x80000005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x405096
mov eax, dword [esi + 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x20000013
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x405339
mov eax, dword [esp + 0x2c]
xor ebx, ebx
cmp eax, 0x12e
mov dword [esp + 0x28], ebx
ja 0x405394
cmp eax, 0x12d
jae 0x4052f5
sub eax, 0xc8
je 0x4052a9
sub eax, 3
je 0x4051cb
sub eax, 3
jne 0x4053af
xor eax, eax
push eax
mov byte [esp + 0x244], 0
mov ecx, 0x10
lea edi, [esp + 0x245]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x248]
push edx
push 0xb
push eax
mov dword [esp + 0x28], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x405231
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esi + 0x54], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.00403450
jmp 0x40573f
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x244]
push eax
mov ecx, esi
call fcn.00404840
mov cx, word [esp + 0x50]
cmp cx, word [esp + 0x6c]
jne 0x405291
mov dx, word [esp + 0x4e]
cmp dx, word [esp + 0x6a]
jne 0x405291
mov ax, word [esp + 0x4c]
cmp ax, word [esp + 0x68]
jne 0x405291
mov cx, word [esp + 0x4a]
cmp cx, word [esp + 0x66]
jne 0x405291
mov dx, word [esp + 0x46]
cmp dx, word [esp + 0x62]
jne 0x405291
mov ax, word [esp + 0x44]
cmp ax, word [esp + 0x60]
je 0x4053c4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x20], 0
jmp 0x4053bb
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4052e9
mov ecx, esi
call fcn.00403450
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 0x80000002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4053c4
push 0x401
call fcn.00412749
mov ebx, eax
add esp, 4
xor eax, eax
mov ecx, 0x100
mov edi, ebx
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x18]
push edx
push ebx
stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
push 0x21
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
push ebx
jne 0x40534e
call fcn.0041221d
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00403450
jmp 0x40573f
lea ecx, [esi + 0x4c]
call fcn.00404680
mov ecx, esi
call fcn.00403450
push ebx
call fcn.0041221d
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
sub eax, 0x193
je 0x405a5e
dec eax
je 0x405a20
sub eax, 0x60
je 0x4059e9
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4059db
mov ebx, 1
mov dword [esp + 0x28], ebx
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x405096
test ebx, ebx
je 0x405499
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esp + 0x54]
mov eax, dword [esi + 0x28]
push 0
push edx
push 0x421524
push 0
push str.HTTP_1.0
push eax
mov eax, dword [esi + 8]
push 0x41d46c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x405339
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x405430
push 0x1000000
push 0xffffffffffffffff
lea ecx, [esp + 0x2d8]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x405096
mov edx, dword [esi + 0xc]
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x405339
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x405096
mov edx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0x20000013
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x405339
cmp dword [esp + 0x2c], 0xc8
jne 0x405339
mov edx, dword [esi + 0xc]
xor eax, eax
mov byte [esp + 0x1f8], 0
mov ecx, 0x10
lea edi, [esp + 0x1f9]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x200]
push ecx
push 0xb
push edx
mov dword [esp + 0x28], 0x40
call edi
test eax, eax
je 0x4054ef
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1fc]
push ecx
mov ecx, esi
call fcn.00404840
mov ecx, dword [esi + 0xc]
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push eax
push 0x20000005
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x405521
mov dword [esp + 0x40], 0x32000
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x1c], eax
mov dword [esi + 0x5c], eax
mov dword [esp + 0x18], 2
cmp dword [edi - 0xc], ebx
je 0x40556a
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x40556a
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40556a
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0xbd8
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 0x44], ebx
jne 0x405096
push ebx
push 1
mov ecx, edi
call fcn.004030e0
add esp, 8
test eax, eax
je 0x4055a8
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4055dd
mov ecx, esi
call fcn.00403450
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 0x80000003
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40561b
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x405628
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1001
call fcn.00412749
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 3
lea esp, [esp]
mov edi, dword [esp + 0x28]
xor eax, eax
mov ecx, 0x400
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40576b
mov edi, dword [esp + 0x28]
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x30]
push ecx
push 0x1000
push edi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4057e2
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
add edx, eax
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esp + 0x20], edx
je 0x4056c0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4056c0
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xbd8
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x30]
test eax, eax
jbe 0x4056ec
push 0
lea ecx, [esp + 0x38]
push ecx
push eax
push edi
push ebx
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x30]
test eax, eax
ja 0x405650
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x1c]
jae 0x405869
mov ecx, esi
call fcn.00403450
push edi
call fcn.0041221d
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0x28]
push edx
call fcn.0041221d
add esp, 4
mov ecx, esi
call fcn.00403450
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x38]
push edx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x28]
push eax
call fcn.0041221d
add esp, 4
call edi
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00403450
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 0x80000009
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x50]
test eax, eax
je 0x405891
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405891
mov eax, dword [esi + 0x50]
lea edx, [esp + 0x18]
push edx
push 0
push 0xbd8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
push eax
mov byte [esp + 0x28c], 0
mov ecx, 0x10
lea edi, [esp + 0x28d]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x290]
push edx
push 0x17
push eax
mov dword [esp + 0x28], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4058e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00403450
jmp 0x405912
push str.close
lea ecx, [esp + 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405901
mov ecx, esi
call fcn.00403450
jmp 0x405912
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0xc], 0
mov eax, dword [esp + 0x28]
push eax
call fcn.0041221d
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x5c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405976
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
lea ecx, [esp + 0x18]
jne 0x4059b4
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 0x80000004
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
jmp 0x40573f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x18]
mov dword [esi + 0x54], eax
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 0x80000011
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00403450
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov eax, 0x80000007
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, ebp
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00403450
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x10]
call fcn.00403a20
mov ecx, dword [esp + 0x3e4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x80000010
pop ebx
call fcn.0041277f
mov esp, ebp
pop ebp
ret 0x10