Function at 0x450470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4737e3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x48e4f0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x48e4f0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x84], 2
mov dword [esp + 0x14], edi
jne 0x4504c9
mov eax, 6
lea ebx, [eax + 2]
jmp 0x4504d1
mov eax, 7
lea ebx, [eax + 2]
mov ecx, dword [edi + 0x8c]
mov edx, dword [ecx + 0x54]
mov ecx, dword [edx + 0x18]
push ecx
call fcn.0042c450
or eax, edx
jne 0x450869
xor esi, esi
xor edx, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], dx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], ax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa0], 1
push ecx
mov ecx, dword [edi + 0x8c]
lea eax, [esp + 0x14]
call fcn.0040a340
test eax, eax
jne 0x450586
push 5
mov eax, edi
call fcn.00451020
mov edi, 8
cmp dword [esp + 0x34], edi
jb 0x450559
mov edx, dword [esp + 0x20]
push edx
call fcn.004593e2
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], ax
cmp dword [esp + 0x50], edi
jb 0x45057f
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004593e2
add esp, 4
xor eax, eax
jmp 0x450bd0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
mov ecx, edi
call fcn.0040a340
test eax, eax
jne 0x4505e8
push 5
mov eax, edi
call fcn.00451020
mov edi, 8
cmp dword [esp + 0x34], edi
jb 0x4505bb
mov eax, dword [esp + 0x20]
push eax
call fcn.004593e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], cx
cmp dword [esp + 0x50], edi
jb 0x45057f
mov edx, dword [esp + 0x3c]
push edx
call fcn.004593e2
add esp, 4
xor eax, eax
jmp 0x450bd0
lea esi, [esp + 0x3c]
call fcn.00425bb0
test al, al
jne 0x45081c
lea esi, [esp + 0x20]
call fcn.00425bb0
test al, al
jne 0x45081c
mov eax, edi
call fcn.0040cb00
cmp eax, 0x17
jne 0x4506a2
sub esp, 0x1c
lea ecx, [esp + 0x58]
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.004044c0
lea edi, [esp + 0x74]
call fcn.004263c0
add esp, 0x1c
mov edi, eax
lea eax, [esp + 0x3c]
mov byte [esp + 0xa0], 2
call fcn.00402ba0
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.004044f0
sub esp, 0x1c
lea ecx, [esp + 0x3c]
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.004044c0
lea edi, [esp + 0x74]
call fcn.004263c0
add esp, 0x1c
mov edi, eax
lea eax, [esp + 0x20]
mov byte [esp + 0xa0], 3
call fcn.00402ba0
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.004044f0
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x8c]
mov ecx, dword [eax + 0x54]
mov edx, dword [ecx + 0x18]
push edx
mov eax, ebx
call fcn.0042c450
or eax, edx
jne 0x4507cf
mov eax, edi
call fcn.0040cb00
cmp eax, 0x17
jne 0x450730
lea eax, [esp + 0x3c]
push eax
mov ecx, 0x14
lea edi, [esp + 0x5c]
call fcn.00404dd0
mov edi, eax
lea eax, [esp + 0x3c]
mov byte [esp + 0xa0], 4
call fcn.00402ba0
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.004044f0
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x14
lea edi, [esp + 0x5c]
call fcn.00404dd0
mov edi, eax
lea eax, [esp + 0x20]
mov byte [esp + 0xa0], 5
call fcn.00402ba0
lea ecx, [esp + 0x58]
jmp 0x4507c2
mov esi, 0x2e
lea edi, [esp + 0x10]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x10], esi
call fcn.0041d330
cmp eax, 0xffffffff
jne 0x45074f
or ecx, eax
jmp 0x450751
mov ecx, eax
lea edx, [esp + 0x3c]
push edx
lea edi, [esp + 0x5c]
call fcn.00404dd0
mov edi, eax
lea eax, [esp + 0x3c]
mov byte [esp + 0xa0], 6
call fcn.00402ba0
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.004044f0
lea edi, [esp + 0x10]
lea ebx, [esp + 0x20]
mov dword [esp + 0x10], esi
call fcn.0041d330
cmp eax, 0xffffffff
jne 0x45079b
or eax, eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
lea edi, [esp + 0x78]
call fcn.00404dd0
mov edi, eax
lea eax, [esp + 0x20]
mov byte [esp + 0xa0], 7
call fcn.00402ba0
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 1
call fcn.004044f0
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4507de
lea eax, [esp + 0x20]
mov edi, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x40]
call fcn.00403a30
test eax, eax
je 0x450818
mov eax, dword [esp + 0x14]
push 5
call fcn.00451020
lea ecx, [esp + 0x20]
call fcn.004044f0
lea ecx, [esp + 0x3c]
call fcn.004044f0
xor eax, eax
jmp 0x450bd0
mov edi, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x450834
mov edx, dword [esp + 0x20]
push edx
call fcn.004593e2
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp dword [esp + 0x50], esi
jb 0x450869
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004593e2
add esp, 4
cmp dword [edi + 0x84], 2
mov eax, edi
mov ecx, 0x21
je 0x45087e
mov ecx, 0x22
call fcn.0040a5c0
cmp dword [edi + 0xac], 0
je 0x45094b
xor edx, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], dx
mov eax, str.150_Connection_accepted
mov dword [esp + 0xa0], 8
test eax, 0xffff0000
jne 0x4508cf
mov ecx, eax
movzx eax, cx
push eax
lea eax, [esp + 0x40]
call fcn.00406620
jmp 0x4508e0
push str.150_Connection_accepted
lea ebx, [esp + 0x40]
call fcn.00406760
add esp, 4
mov dword [esp + 0xa0], 9
mov eax, dword [edi + 0x90]
mov ecx, dword [edi + 0x94]
mov edx, eax
or edx, ecx
je 0x450910
push ecx
push eax
push str.150_Connection_accepted__restarting_at_offset__I64d
lea edx, [esp + 0x48]
call fcn.0041ee70
add esp, 0xc
cmp dword [esp + 0x50], 8
mov ecx, dword [esp + 0x3c]
jae 0x45091f
lea ecx, [esp + 0x3c]
mov esi, dword [edi + 0x8c]
push 1
call fcn.00412bc0
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x45094b
mov eax, dword [esp + 0x3c]
push eax
call fcn.004593e2
add esp, 4
mov eax, dword [edi + 0x84]
mov esi, 1
mov dword [edi + 0x80], esi
cmp eax, 3
jne 0x450a8c
mov ecx, dword [edi + 0x8c]
mov edx, dword [ecx + 0x54]
mov eax, dword [edx + 0x18]
push eax
lea eax, [esi + 0x33]
call fcn.0042c450
or eax, edx
je 0x450983
mov esi, 3
cmp dword [edi + 0x74], 8
lea eax, [edi + 0x60]
jb 0x45098e
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push esi
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [edi + 0x9c], esi
cmp esi, 0xffffffff
jne 0x4509c0
push 3
mov eax, edi
call fcn.00451020
xor eax, eax
jmp 0x450bd0
mov ebx, dword [edi + 0x90]
mov edx, dword [edi + 0x94]
mov eax, ebx
mov cl, 0x20
call fcn.0046f8e0
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov dword [esp + 0x28], eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x450a24
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
je 0x450a24
mov eax, dword [edi + 0x9c]
push 2
lea edx, [esp + 0x1c]
push edx
push 0
push eax
mov dword [esp + 0x28], 0
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x450a24
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
jne 0x4509b0
mov eax, dword [esp + 0x18]
cdq
xor ecx, ecx
xor edx, edx
add ecx, esi
adc eax, edx
mov dword [edi + 0x120], ecx
mov dword [edi + 0x124], eax
cmp dword [edi + 0xa0], edx
jne 0x450bbe
mov eax, dword [edi + 0xd0]
push eax
call fcn.004576a9
add esp, 4
cmp byte [edi + 0xd4], 0
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa8], 0
je 0x450bbe
mov ecx, dword [edi + 0xd0]
mov dword [edi + 0xe4], eax
mov dword [edi + 0xe8], ecx
jmp 0x450bbe
cmp eax, 2
jne 0x450bbe
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
mov edx, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 4
call fcn.0040a8d0
test eax, eax
je 0x450ae0
mov eax, dword [edi + 0xd0]
cmp dword [esp + 0x14], eax
jae 0x450ae0
push 0xffff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x1c]
mov edx, 0x1002
call fcn.0040a900
cmp dword [edi + 0x9c], 0xffffffff
jne 0x450ba0
mov edx, dword [edi + 0x8c]
mov eax, dword [edx + 0x54]
mov ecx, dword [eax + 0x18]
push ecx
mov eax, 0x34
call fcn.0042c450
or eax, edx
je 0x450b0d
mov esi, 3
cmp dword [edi + 0x74], 8
lea eax, [edi + 0x60]
jb 0x450b18
mov eax, dword [eax]
push 0
push 0
push 4
push 0
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [edi + 0x9c], esi
cmp esi, 0xffffffff
je 0x4509b0
mov ebx, dword [edi + 0x90]
mov edx, dword [edi + 0x94]
mov eax, ebx
mov cl, 0x20
call fcn.0046f8e0
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
jne 0x450b7a
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
jne 0x4509b0
mov eax, dword [edi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x10]
cdq
xor ecx, ecx
xor edx, edx
add ecx, esi
adc eax, edx
mov dword [edi + 0x120], ecx
mov dword [edi + 0x124], eax
cmp dword [edi + 0xa0], 0
jne 0x450bbe
mov eax, dword [edi + 0xd0]
push eax
call fcn.004576a9
add esp, 4
mov dword [edi + 0xa0], eax
add edi, 0xb0
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004593ed
mov esp, ebp
pop ebp
ret