Function at 0x430990
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x5c0bb7
mov eax, dword fs:[0]
push eax
sub esp, 0x594
mov eax, dword [0x63727c]
xor eax, esp
mov dword [esp + 0x590], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x63727c]
xor eax, esp
push eax
lea eax, [esp + 0x5a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5bc]
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14c], 0xf
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
push 1
push 2
lea ecx, [esp + 0xbc]
mov dword [esp + 0x5b8], ebx
mov dword [esp + 0x24], 1
call fcn.0042f540
mov edx, dword [esp + 0x5b8]
mov edi, dword [sym.imp.WS2_32.dll_recv]
push ebx
push 0x400
lea ecx, [esp + 0x1ac]
push ecx
push edx
mov byte [esp + 0x5c0], 1
call edi
mov esi, eax
cmp esi, ebx
je 0x430a7b
mov edi, edi
push esi
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0xbc]
call fcn.0042fbf0
cmp esi, 0x400
jl 0x430a7b
mov edx, dword [esp + 0x5b8]
push ebx
push 0x400
lea ecx, [esp + 0x1ac]
push ecx
push edx
call edi
mov esi, eax
cmp esi, ebx
jne 0x430a40
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0xb8]
call fcn.0042d760
cmp dword [esp + 0x168], 0x10
mov eax, dword [esp + 0x154]
mov byte [esp + 0x5b0], 2
jae 0x430aaf
lea eax, [esp + 0x154]
push eax
push str._n_s_n
call fcn.00587659
mov eax, dword [esp + 0x16c]
add esp, 8
xor edi, edi
cmp eax, ebx
jbe 0x430c0b
cmp edi, eax
jbe 0x430ad7
call fcn.00585049
cmp dword [esp + 0x168], 0x10
mov eax, dword [esp + 0x154]
jae 0x430aef
lea eax, [esp + 0x154]
mov al, byte [eax + edi]
mov byte [esp + 0x2c], al
cmp esi, ebx
je 0x430ba4
cmp esi, 0xffffffff
je 0x430ba4
cmp al, 0xd
je 0x430b28
cmp al, 0xa
je 0x430b28
test al, al
je 0x430b28
mov ecx, dword [esp + 0x2c]
push ecx
push 1
lea ecx, [esp + 0x13c]
call fcn.0041c4f0
jmp 0x430b92
cmp dword [esp + 0x148], ebx
je 0x430b86
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], 0
cmp dword [esp + 0x38], ebx
je 0x430b6b
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x158]
push edx
call fcn.00404770
mov ecx, ebp
call fcn.0042d600
mov dword [esp + 0x1c], ebx
jmp 0x430b86
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x158]
push eax
call fcn.00404770
mov ecx, ebp
call fcn.0042ffc0
lea ecx, [esp + 0x134]
call fcn.0042cbf0
mov eax, dword [esp + 0x164]
inc edi
cmp edi, eax
jb 0x430ad7
jmp 0x430c0b
cmp dword [esp + 0x148], ebx
je 0x430c6a
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], 0
push ebx
cmp dword [esp + 0x40], ebx
je 0x430beb
lea edx, [esp + 0x158]
push edx
call fcn.00404770
mov ecx, ebp
call fcn.0042d600
mov dword [esp + 0x1c], ebx
jmp 0x430bff
lea eax, [esp + 0x158]
push eax
call fcn.00404770
mov ecx, ebp
call fcn.0042ffc0
lea ecx, [esp + 0x134]
call fcn.0042cbf0
cmp dword [esp + 0x148], ebx
je 0x430c6a
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], 0
push ebx
cmp dword [esp + 0x40], ebx
je 0x430c4a
lea edx, [esp + 0x158]
push edx
call fcn.00404770
mov ecx, ebp
call fcn.0042d600
jmp 0x430c5e
lea eax, [esp + 0x158]
push eax
call fcn.00404770
mov ecx, ebp
call fcn.0042ffc0
lea ecx, [esp + 0x134]
call fcn.0042cbf0
cmp dword [ebp + 0x1c], 0x10
jb 0x430c75
mov eax, dword [ebp + 8]
jmp 0x430c78
lea eax, [ebp + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x5d314c
call fcn.00587659
mov edi, 0x10
add esp, 0xc
mov dword [esp + 0x28], ebx
cmp dword [ebp + 0x1c], edi
jb 0x430ca8
mov eax, dword [ebp + 8]
jmp 0x430cab
lea eax, [ebp + 8]
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x28]
push ecx
push eax
mov ecx, ebp
call edx
test eax, eax
je 0x430dd2
push 0x1a
push str.HTTP_1.1_404_Not_Found_r_n_r_n
lea ecx, [esp + 0x174]
mov dword [esp + 0x18c], 0xf
mov dword [esp + 0x188], ebx
mov byte [esp + 0x178], 0
call fcn.00404980
mov eax, dword [esp + 0x170]
cmp dword [esp + 0x184], edi
jae 0x430d07
lea eax, [esp + 0x170]
mov ecx, dword [esp + 0x180]
mov esi, dword [esp + 0x5b8]
push ebx
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [esp + 0x184], edi
jb 0x430d3f
mov edx, dword [esp + 0x170]
push edx
call fcn.0053e50d
add esp, 4
mov esi, 0xf
mov dword [esp + 0x184], esi
mov dword [esp + 0x180], ebx
mov byte [esp + 0x170], 0
cmp dword [esp + 0x168], edi
jb 0x430d73
mov eax, dword [esp + 0x154]
push eax
call fcn.0053e50d
add esp, 4
lea ecx, [esp + 0x100]
mov dword [esp + 0x168], esi
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], 0
mov byte [esp + 0x5b0], 0
call fcn.0042bd40
lea ecx, [esp + 0x100]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005bbea9
add esp, 4
cmp dword [esp + 0x14c], edi
jb 0x431159
mov edx, dword [esp + 0x138]
push edx
jmp 0x431151
or eax, 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00430600
mov edx, dword [ebp]
mov edx, dword [edx + 0x14]
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, ebp
call edx
push 1
mov edi, edx
push 2
lea ecx, [esp + 0x3c]
mov ebx, eax
mov dword [esp + 0x38], edi
call fcn.0042f540
mov byte [esp + 0x5b0], 3
test esi, esi
je 0x430f6e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, eax
or edx, ecx
jne 0x430f25
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
je 0x430f6a
cmp edi, dword [esp + 0x30]
jg 0x430e65
jl 0x430e5f
cmp esi, ebx
jae 0x430e65
add esi, 1
adc edi, 0
lea edx, [esp + 0x34]
push str.HTTP_1.1_206_Partial_Content_r_n
push edx
call fcn.0042f890
add esp, 8
mov eax, esi
sub eax, dword [esp + 0x14]
push 0x5d310c
mov ecx, edi
sbb ecx, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push ecx
push eax
push str.Content_Length:
push edx
call fcn.0042f890
add esp, 8
mov ecx, eax
call fcn.0042faa0
push eax
call fcn.0042f890
mov eax, dword [esp + 0x38]
add esp, 8
push 0x5d310c
push eax
mov eax, dword [esp + 0x20]
push ebx
push 0x5d30f4
mov ecx, esi
sub ecx, 1
mov edx, edi
sbb edx, 0
push edx
push ecx
mov ecx, dword [esp + 0x2c]
push 0x5d30f0
push eax
push ecx
lea edx, [esp + 0x58]
push str.Content_Range:_bytes
push edx
call fcn.0042f890
add esp, 8
mov ecx, eax
call fcn.0042faa0
push eax
call fcn.0042f890
add esp, 8
mov ecx, eax
call fcn.0042faa0
push eax
call fcn.0042f890
add esp, 8
mov ecx, eax
call fcn.0042faa0
push eax
call fcn.0042f890
push 0x5d310c
lea eax, [esp + 0x40]
push eax
jmp 0x430fc5
and eax, ecx
cmp eax, 0xffffffff
jne 0x430f4a
mov eax, ebx
sub eax, dword [esp + 0x20]
mov esi, ebx
mov dword [esp + 0x14], eax
mov eax, edi
sbb eax, dword [esp + 0x24]
add esi, 1
mov dword [esp + 0x18], eax
adc edi, 0
jmp 0x430f52
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, esi
and ecx, edi
cmp ecx, 0xffffffff
jne 0x430e53
mov edi, dword [esp + 0x30]
mov esi, ebx
jmp 0x430e5f
mov edi, dword [esp + 0x30]
xor eax, eax
mov esi, ebx
lea ecx, [esp + 0x34]
push str.HTTP_1.1_200_OK_r_n
add esi, 1
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
adc edi, eax
call fcn.0042f890
mov edx, dword [esp + 0x38]
add esp, 8
push 0x5d310c
push edx
push ebx
lea eax, [esp + 0x40]
push str.Content_Length:
push eax
call fcn.0042f890
add esp, 8
mov ecx, eax
call fcn.0042faa0
push eax
call fcn.0042f890
push 0x5d310c
lea ecx, [esp + 0x40]
push ecx
call fcn.0042f890
add esp, 0x10
lea edx, [esp + 0x188]
push edx
lea ecx, [esp + 0x38]
call fcn.0042d760
cmp dword [esp + 0x1a0], 0x10
mov eax, dword [esp + 0x18c]
mov byte [esp + 0x5b0], 4
jae 0x430ffe
lea eax, [esp + 0x18c]
push eax
push 0x5d30c0
call fcn.00587659
mov eax, dword [esp + 0x194]
add esp, 8
cmp dword [esp + 0x1a0], 0x10
jae 0x431024
lea eax, [esp + 0x18c]
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x5b8]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push edi
push esi
mov esi, dword [esp + 0x5c8]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
push esi
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [esp + 0x28]
mov edx, dword [edx + 0x10]
push eax
mov ecx, ebp
call edx
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, 0x10
cmp dword [esp + 0x1a0], esi
jb 0x43109a
mov eax, dword [esp + 0x18c]
push eax
call fcn.0053e50d
add esp, 4
xor ebx, ebx
mov ebp, 0xf
lea ecx, [esp + 0x80]
mov dword [esp + 0x1a0], ebp
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], bl
mov byte [esp + 0x5b0], 2
call fcn.0042bd40
lea ecx, [esp + 0x80]
mov edi, vtable.std::ios_base.0
push ecx
mov dword [esp + 0x84], edi
call fcn.005bbea9
add esp, 4
cmp dword [esp + 0x168], esi
jb 0x4310ff
mov edx, dword [esp + 0x154]
push edx
call fcn.0053e50d
add esp, 4
lea ecx, [esp + 0x100]
mov dword [esp + 0x168], ebp
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], 0
mov byte [esp + 0x5b0], 0
call fcn.0042bd40
lea eax, [esp + 0x100]
push eax
mov dword [esp + 0x104], edi
call fcn.005bbea9
add esp, 4
cmp dword [esp + 0x14c], esi
jb 0x431159
mov ecx, dword [esp + 0x138]
push ecx
call fcn.0053e50d
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x5a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x590]
xor ecx, esp
call fcn.00584267
add esp, 0x5a0
ret 8