Function at 0x4076ed
Capabilities:
Create directory
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x43ba68
call fcn.0041d57c
sub esp, 0x45c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x407ab0
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x407ab0
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x407ab0
cmp byte [0x4506d8], 1
je 0x407ab0
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.00403d2f
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], ebx
call fcn.004033a6
test al, al
je 0x407833
sub esp, 0x1c
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.00401d61
mov ecx, dword [edi + 4]
call fcn.004041d8
cmp eax, ebx
jne 0x4077a5
push dword [esi + 0x34]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push eax
call fcn.00403d2f
push dword [esi + 0x2c]
mov ecx, dword [edi + 4]
push dword [esi + 0x28]
lea eax, [ebp - 0x54]
push dword [esi + 0x20]
mov byte [ebp - 4], 1
push dword [esi + 0x1c]
push esi
push eax
call fcn.0040482c
push ebx
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.004014f4
cmp dword [esi + 0x28], ebx
jne 0x4077dd
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00401dc1
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp dword [ebp - 0x3c], 0x10
jae 0x4077ca
lea eax, [ebp - 0x50]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.004014f4
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp + 0xc], eax
je 0x40781c
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [eax + 0x28]
push dword [ebp + 8]
call fcn.004076ed
add esp, 0x1c
test al, al
je 0x407aa8
lea ecx, [ebp + 0xc]
call fcn.00401559
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x3c]
jne 0x4077e9
mov byte [ebp + 0xf], 1
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004014f4
mov al, byte [ebp + 0xf]
jmp 0x407ab2
cmp byte [esi + 0x30], bl
jne 0x40781c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x54]
push eax
call fcn.00401dc1
add esp, 0xc
push str.update.exe
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004015b3
test eax, eax
jne 0x40786d
push 0x43e778
lea ecx, [ebp - 0x34]
call fcn.00401da4
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x407879
lea eax, [ebp - 0x50]
push ebx
push 0x84400100
push ebx
push ebx
push str.HTTP_1.0
push eax
push 0x43e744
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0xc], edi
push ebx
je 0x407a9e
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x407a96
push ebx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
push 5
push edi
mov dword [ebp - 0x58], 0x10
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x407a96
lea eax, [ebp - 0x68]
push eax
call fcn.0041d78b
sub esp, 0x18
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00401d61
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
call fcn.004041d8
mov edi, eax
cmp edi, ebx
je 0x4079c7
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x407914
lea eax, [ebp - 0x30]
cmp dword [edi + 0x28], ebx
mov ecx, dword [ebp + 0x18]
push eax
setne al
push eax
call fcn.00402980
test al, al
je 0x4079c7
mov eax, dword [esi + 0x24]
cmp eax, dword [edi + 0x24]
jne 0x407951
mov eax, dword [ebp - 0x18]
cmp eax, dword [edi + 0x1c]
jne 0x407951
mov eax, dword [edi + 0x20]
push ebx
push ebx
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp eax, 0xffffffff
jne 0x407999
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0041d78b
pop ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push eax
call fcn.0040300e
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x40797a
lea eax, [ebp - 0x30]
mov ecx, dword [ebp + 0x18]
push ebx
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [ebp - 0x14]
push eax
call fcn.0040262e
test al, al
jne 0x4079a5
push dword [ebp + 0xc]
jmp 0x407a97
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x10]
mov eax, 0x400
cmp ecx, eax
mov dword [ebp - 0x18], ecx
jb 0x4079ba
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp - 0x10]
add dword [edi], eax
jmp 0x407a52
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0041d78b
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x40796e
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x468]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407991
cmp byte [0x4506d8], 1
je 0x407991
cmp dword [ebp - 0x38], ebx
je 0x407a57
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x407a0e
lea eax, [ebp - 0x30]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x468]
push ecx
mov ecx, dword [ebp + 0x18]
push eax
call fcn.0040273d
test al, al
je 0x407991
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x10]
cmp ecx, 0x400
jae 0x407a40
mov dword [ebp - 0x18], ecx
add dword [edi], eax
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
push dword [ebp + 0x1c]
call fcn.00405555
add esp, 0xc
cmp dword [ebp - 0x18], ebx
ja 0x4079d9
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x34]
push eax
call fcn.00402338
cmp dword [esi + 0x24], eax
push dword [ebp + 0xc]
je 0x407a80
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x34]
push eax
push eax
call fcn.0040300e
jmp 0x407a9d
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.004014f4
jmp 0x40781c
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.004014f4
mov byte [ebp + 0xf], bl
jmp 0x407820
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret