Function at 0x439040
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4476eb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20dc
call fcn.00445f40
mov eax, dword [0x456020]
xor eax, esp
mov dword [esp + 0x20d8], eax
push ebx
push esi
push edi
mov eax, dword [0x456020]
xor eax, esp
push eax
lea eax, [esp + 0x20f0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 9
ja case.0x439093.8
jmp dword [eax*4 + 0x439654]
mov dword [esi + 4], 2
call fcn.004397b8
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x439277
lea edi, [esi + 0xc98]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x4390cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], ebx
cmp dword [esi + 0x220], 4
mov dword [esi + 4], 3
mov edi, 0x8400c300
jne 0x4390e6
mov edi, 0x8480f300
push dword [esi + 0xc94]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x42c]
push eax
lea ecx, [esp + 0x14]
call fcn.0040f5f0
lea eax, [esi + 0xa44]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20fc], ebx
call fcn.00411f00
push esi
push edi
push ebx
push ebx
push str.HTTP_1.1
lea ecx, [esp + 0x24]
call fcn.00433de0
push eax
push 0x44c3e0
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x43925b
push 9
pop ecx
xor eax, eax
lea edi, [esp + 0x30]
push 0x208e
mov dword [esp + 0x30], 0x28
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5a]
push ebx
push eax
mov word [esp + 0x60], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x54]
mov ecx, esi
call fcn.004398c8
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.MSVCR80.dll_wcslen]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
pop ecx
push 4
mov dword [esp + 0x3c], eax
lea eax, [esi + 0xca4]
push eax
push 2
push dword [esi + 0x10]
call edi
push 4
lea eax, [esi + 0xca8]
push eax
push 5
push dword [esi + 0x10]
call edi
push 4
lea eax, [esi + 0xcac]
push eax
push 6
push dword [esi + 0x10]
call edi
cmp dword [esi + 0xd10], ebx
je 0x43921f
cmp dword [esi + 0xd1c], ebx
je 0x43921f
lea ecx, [esi + 0xd20]
call fcn.00404e70
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0xd20]
call fcn.00433de0
push eax
push 0x2b
push dword [esi + 0x10]
call edi
test eax, eax
je 0x43921f
lea ecx, [esi + 0xd24]
call fcn.00404e70
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0xd24]
call fcn.00433de0
push eax
push 0x2c
push dword [esi + 0x10]
call edi
push esi
push 1
push ebx
lea eax, [esp + 0x38]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x43924e
push dword [esi + 0xc94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x10]
call fcn.0040fa10
xor eax, eax
jmp 0x439277
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x439241
lea ecx, [esp + 0x10]
call fcn.0040fa10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00438ca7
add esp, 8
push 4
pop eax
mov ecx, dword [esp + 0x20f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20d8]
xor ecx, esp
call fcn.0043a53a
mov esp, ebp
pop ebp
ret
push 4
pop ebx
push dword [esi + 0xc94]
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
push eax
push eax
push eax
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x4392d0
push dword [esi + 0xc94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x43924a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x43924a
call edi
push eax
push esi
call fcn.00438ca7
add esp, 8
mov eax, ebx
jmp 0x439277
xor ebx, ebx
mov dword [esi + 0xd08], ebx
mov byte [esi + 0xd0c], bl
call fcn.004399e7
push dword [esi + 0xc5c]
mov ecx, dword [esi + 0xc50]
push dword [esi + 0xc58]
mov dword [esp + 0x18], ecx
push ecx
push esi
call fcn.00438ca7
mov edi, dword [esi + 0xcd4]
mov eax, dword [esi + 0xcd0]
add esp, 0x10
cmp edi, ebx
jl 0x43940e
jg 0x439344
cmp eax, ebx
jbe 0x43940e
cmp dword [esi + 0xccc], ebx
jl 0x4393e2
jg 0x43935e
cmp dword [esi + 0xcc8], ebx
jbe 0x4393e2
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push esi
lea ebx, [esp + 0x1c]
lea edx, [esp + 0x2c]
call fcn.00439b9d
mov eax, dword [esp + 0x24]
cmp eax, dword [esi + 0xcc8]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
jne 0x4393bc
cmp edi, dword [esi + 0xccc]
jne 0x4393bc
cmp edx, dword [esi + 0xcd0]
jne 0x4393bc
cmp ecx, dword [esi + 0xcd4]
je 0x439408
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
push eax
push ecx
push edx
push dword [esi + 0xcd4]
push dword [esi + 0xcd0]
push esi
call fcn.00438ca7
add esp, 0x24
jmp 0x439274
mov ecx, dword [esi + 0xc58]
cmp eax, ecx
mov edx, dword [esi + 0xc5c]
jne 0x4393f6
cmp edi, edx
je 0x43940a
push edx
push ecx
push edi
push eax
push esi
call fcn.00438ca7
add esp, 0x14
jmp 0x439274
xor ebx, ebx
mov ecx, dword [esp + 0x10]
cmp dword [esi + 0xc9c], ebx
jne 0x439451
cmp ecx, 0xce
je 0x439426
cmp ecx, 0xc8
jne 0x439451
mov eax, dword [esi + 0xcac]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 6
push dword [esi + 0x10]
mov dword [esi + 4], 5
call dword [sym.imp.WININET.dll_InternetSetOptionW]
xor eax, eax
inc eax
jmp 0x439277
cmp ecx, 0x1f4
je 0x439463
cmp ecx, ebx
je 0x439463
push ecx
jmp 0x43926b
push dword [esi + 0xcd8]
push ecx
push esi
call fcn.00438ca7
add esp, 0xc
push 1
call fcn.0043967c
jmp 0x4390a6
push dword [esi + 0xc94]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x28
pop edi
push edi
lea ebx, [esi + 0xc68]
push 0
push ebx
mov dword [esi + 4], 6
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0xc90]
mov ecx, dword [esi + 0xcc0]
mov dword [esi + 0xc7c], eax
mov eax, dword [esi + 0xcc4]
add esp, 0xc
test eax, eax
mov edx, 0x1fff
mov dword [ebx], edi
mov dword [esi + 0xc80], edx
jl 0x439519
jg 0x4394d6
test ecx, ecx
jbe 0x439519
cmp dword [esi + 0xccc], eax
jl 0x4394f0
jg 0x4394e8
cmp dword [esi + 0xcc8], ecx
jbe 0x4394f0
xor edx, edx
mov dword [esp + 0x18], edx
jmp 0x439513
sub ecx, dword [esi + 0xcc8]
sbb eax, dword [esi + 0xccc]
test eax, eax
jg 0x43950e
jl 0x439506
cmp ecx, edx
jae 0x43950e
mov edx, ecx
mov dword [esp + 0x18], eax
jmp 0x439513
and dword [esp + 0x18], 0
mov dword [esi + 0xc80], edx
cmp dword [esi + 0xc80], 0
je 0x439564
push esi
push 8
push ebx
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x439564
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x43924a
call edi
push eax
push esi
call fcn.00438ca7
add esp, 8
cmp dword [esi + 0xc80], 0
jne 0x439274
jmp 0x439473
mov eax, dword [esi + 0xc80]
mov ecx, dword [esi + 0xc90]
mov dword [esi + 4], 7
mov byte [eax + ecx], 0
push dword [esi + 0xc94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xc80]
test eax, eax
jbe 0x4395ac
mov dword [esi + 0xd08], eax
mov eax, dword [esi + 0xc90]
mov al, byte [eax]
mov byte [esi + 0xd0c], al
push 2
jmp 0x439276
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 0xd00]
push dword [esi + 0xc9c]
push dword [esi + 0xcc4]
push dword [esi + 0xcc0]
push dword [esi + 0xccc]
push dword [esi + 0xcc8]
push dword [esi + 0xcbc]
push dword [esi + 0xcb8]
push esi
call fcn.00438ca7
mov eax, dword [esi + 0xcc8]
add esp, 0x28
cmp eax, dword [esi + 0xcc0]
jne 0x439274
mov eax, dword [esi + 0xccc]
cmp eax, dword [esi + 0xcc4]
jne 0x439274
push 3
jmp 0x439276
mov eax, dword [esi + 0xc80]
xor edx, edx
lea ecx, [esi + 0xce0]
add dword [ecx], eax
adc dword [ecx + 4], edx
lea ecx, [esi + 0xcc8]
add dword [ecx], eax
adc dword [ecx + 4], edx
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 9
mov dword [esi + 4], eax
jmp 0x43924a
mov eax, dword [esi]
call dword [eax + 8]
jmp 0x43924a