Function at 0x405100
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409e55
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48c], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x58], 0x10
mov eax, dword [ebp + 0x44]
jae 0x405148
lea eax, [ebp + 0x44]
push ebx
push ebx
push ebx
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x48c], eax
cmp eax, ebx
jne 0x40522f
push 0x4dc6a6
lea ecx, [ebp - 0x46c]
call fcn.004022d0
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
add edi, dword [ebp - 0x488]
mov dword [esi + 0x14], 0xf
mov ecx, edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea edx, [ecx + 1]
jmp 0x4051a0
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x4051a0
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00401600
xor eax, eax
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov word [ebp - 0x44c], ax
jb 0x4051fd
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, 0x10
mov byte [ebp + 0xc], bl
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], 0xf
cmp dword [ebp + 0x3c], edi
jb 0x405220
mov ecx, dword [ebp + 0x28]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp + 0x58], edi
mov dword [ebp + 0x3c], 0xf
jmp 0x405741
xor eax, eax
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x448], ax
xor edi, edi
mov byte [ebp - 4], 4
cmp dword [ebp + 0x1c], ebx
jbe 0x405292
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x40525f
lea eax, [ebp + 0xc]
movsx cx, byte [eax + edi]
movzx eax, cx
push eax
push 1
lea ecx, [ebp - 0x448]
call fcn.00404250
inc edi
cmp edi, dword [ebp + 0x1c]
jb 0x405253
cmp dword [ebp - 0x434], 8
jb 0x405292
mov edx, dword [ebp - 0x448]
mov dword [ebp - 0x488], edx
jmp 0x40529e
lea eax, [ebp - 0x448]
mov dword [ebp - 0x488], eax
xor ecx, ecx
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], cx
xor edi, edi
mov byte [ebp - 4], 5
cmp dword [ebp + 0x38], ebx
jbe 0x4052f9
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x4052ce
lea eax, [ebp + 0x28]
movsx dx, byte [eax + edi]
movzx eax, dx
push eax
push 1
lea ecx, [ebp - 0x42c]
call fcn.00404250
inc edi
cmp edi, dword [ebp + 0x38]
jb 0x4052c2
cmp dword [ebp - 0x418], 8
mov edi, dword [ebp - 0x42c]
jae 0x4052ff
lea edi, [ebp - 0x42c]
mov eax, dword [ebp - 0x488]
mov ecx, dword [ebp - 0x48c]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x405421
mov eax, 0x44
xor edi, edi
lea ebx, [ebx]
mov dl, byte [edi + 0x40b844]
xor dl, al
inc eax
and eax, 0x800000ff
mov byte [ebp + edi - 0x478], dl
jns 0x40534e
dec eax
or eax, 0xffffff00
inc eax
inc edi
cmp edi, 0x2b
jl 0x405330
mov byte [ebp - 0x44d], bl
lea eax, [ebp - 0x478]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [ebp - 4], 6
mov byte [esi], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405373
sub eax, edx
push eax
lea eax, [ebp - 0x478]
push eax
mov ecx, esi
call fcn.00401600
push 0x2c
lea ecx, [ebp - 0x478]
push ebx
push ecx
call sub.MSVCR100.dll_memset
mov edi, 8
add esp, 0xc
cmp dword [ebp - 0x418], edi
jb 0x4053b9
mov edx, dword [ebp - 0x42c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], ax
cmp dword [ebp - 0x434], edi
jb 0x4053e9
mov ecx, dword [ebp - 0x448]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov edi, 0x10
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x448], dx
cmp dword [ebp + 0x20], edi
jb 0x405202
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x405202
push ebx
push ebx
lea ecx, [ebp - 0x490]
push ecx
push ebx
push ebx
push edi
push 0x40b83c
push eax
mov dword [ebp - 0x490], str.text_
mov dword [ebp - 0x48c], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, ebx
jne 0x40558c
mov eax, 0x44
xor edi, edi
lea ebx, [ebx]
mov dl, byte [edi + str._f127_a9__]
xor dl, al
inc eax
and eax, 0x800000ff
mov byte [ebp + edi - 0x478], dl
jns 0x40547e
dec eax
or eax, 0xffffff00
inc eax
inc edi
cmp edi, 0x2a
jl 0x405460
mov byte [ebp - 0x44e], bl
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp + eax - 0x478]
mov eax, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4054b0
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00401600
push 0x2b
lea eax, [ebp - 0x478]
push ebx
push eax
call sub.MSVCR100.dll_memset
mov edi, 8
add esp, 0xc
cmp dword [ebp - 0x418], edi
jb 0x4054f0
mov ecx, dword [ebp - 0x42c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov word [ebp - 0x42c], dx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], 7
cmp dword [ebp - 0x434], edi
jb 0x405520
mov eax, dword [ebp - 0x448]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov edi, 0x10
mov word [ebp - 0x448], cx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x434], 7
cmp dword [ebp + 0x20], edi
jb 0x40554f
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [ebp + 0xc], bl
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], 0xf
cmp dword [ebp + 0x3c], edi
jb 0x40556d
mov eax, dword [ebp + 0x28]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp + 0x3c], 0xf
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
cmp dword [ebp + 0x58], edi
jb 0x405755
mov ecx, dword [ebp + 0x44]
push ecx
jmp 0x40574d
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x40560f
mov eax, 0x43
xor edi, edi
mov dl, byte [edi + 0x40b7c4]
xor dl, al
inc eax
and eax, 0x800000ff
mov byte [ebp + edi - 0x484], dl
jns 0x4055c0
dec eax
or eax, 0xffffff00
inc eax
inc edi
cmp edi, 0x39
jl 0x4055a2
mov byte [ebp - 0x44b], bl
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp + eax - 0x484]
mov eax, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4055f0
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00401600
push 0x3a
lea eax, [ebp - 0x484]
jmp 0x4054ca
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], ebx
mov byte [ebp - 0x468], bl
lea edx, [ebp - 0x488]
push edx
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
mov byte [ebp - 4], 9
mov dword [ebp - 0x488], 0xffffffff
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x488]
push ecx
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x468]
call fcn.00403b60
lea eax, [ebp - 0x468]
mov edi, 0xf
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00401740
cmp dword [ebp - 0x454], 0x10
jb 0x405699
mov ecx, dword [ebp - 0x468]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x418], 8
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x458], ebx
mov byte [ebp - 0x468], bl
jb 0x4056c3
mov edx, dword [ebp - 0x42c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp dword [ebp - 0x434], 8
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], ax
jb 0x4056f4
mov ecx, dword [ebp - 0x448]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x448], dx
jb 0x40571f
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp + 0x3c], 0x10
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
jb 0x40573a
mov ecx, dword [ebp + 0x28]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp + 0x58], 0x10
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
jb 0x405755
mov edx, dword [ebp + 0x44]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409086
mov esp, ebp
pop ebp
ret