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

Disassembly:
sub esp, 0x58
push ebx
xor ebx, ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x12], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x44], 1
jmp 0x5a4934
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x6c]
mov eax, dword [ebx + ebp]
lea edi, [ebx + ebp]
push eax
call sub.WS2_32.dll_ntohl
sub eax, 8
mov dword [esp + 0x54], eax
mov eax, dword [edi + 4]
add ebx, 8
mov dword [esp + 0x24], ebx
cmp eax, 0x64686674
jne 0x5a4a5f
mov cl, byte [ebx + ebp + 3]
xor eax, eax
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
mov ax, word [ebx + ebp + 1]
lea edi, [ebx + 1]
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], cl
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x18]
push edx
call sub.WS2_32.dll_ntohl
mov ebx, eax
mov eax, dword [edi + ebp + 3]
add edi, 3
push eax
mov dword [esp + 0x24], ebx
call sub.WS2_32.dll_ntohl
add edi, 4
test bl, 1
je 0x5a49f1
mov eax, dword [edi + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov ebx, eax
mov eax, dword [edi + ebp + 4]
push eax
call sub.WS2_32.dll_ntohl
cdq
mov dword [esp + 0x60], eax
push 1
mov dword [esp + 0x68], edx
mov eax, ebx
cdq
push 0
push edx
push eax
call fcn.006254d0
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x64]
adc eax, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
add edi, 8
test bl, 2
je 0x5a4a02
mov ecx, dword [edi + ebp]
push ecx
call sub.WS2_32.dll_ntohl
add edi, 4
test bl, 8
je 0x5a4a26
mov eax, dword [edi + ebp]
push eax
call sub.WS2_32.dll_ntohl
add edi, 4
mov dword [esp + 0x28], eax
cmp eax, 0x10000
jne 0x5a4a26
mov dword [esp + 0x28], 0
test bl, 0x10
je 0x5a4a3b
mov eax, dword [edi + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov dword [esp + 0x2c], eax
add edi, 4
test bl, 0x20
je 0x5a4ffa
mov edx, dword [esp + 0x6c]
mov edi, dword [edi + edx]
push edi
call sub.WS2_32.dll_ntohl
mov dword [esp + 0x30], eax
mov byte [esp + 0x12], 1
jmp 0x5a4ffa
cmp eax, 0x74646674
jne 0x5a4a91
cmp byte [edi + 8], 0
jne 0x5a4a7a
mov eax, dword [edi + 0xc]
push eax
call sub.WS2_32.dll_ntohl
jmp 0x5a4ffa
mov ecx, dword [edi + 0xc]
push ecx
call sub.WS2_32.dll_ntohl
mov edx, dword [edi + 0x10]
push edx
call sub.WS2_32.dll_ntohl
jmp 0x5a4ffa
cmp eax, 0x6e757274
jne 0x5a4ffa
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x6c]
mov cl, byte [edi + ebp + 3]
xor eax, eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
mov ax, word [edi + ebp + 1]
inc edi
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], cl
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
push edx
call sub.WS2_32.dll_ntohl
mov ebx, eax
mov eax, dword [edi + ebp + 3]
add edi, 3
push eax
call sub.WS2_32.dll_ntohl
mov ebp, eax
add edi, 4
mov dword [esp + 0x38], ebp
test bl, 1
je 0x5a4b02
mov eax, dword [esp + 0x6c]
mov eax, dword [edi + eax]
push eax
call sub.WS2_32.dll_ntohl
mov dword [esp + 0x40], eax
add edi, 4
test bl, 4
je 0x5a4b2c
mov ecx, dword [esp + 0x6c]
mov eax, dword [edi + ecx]
push eax
call sub.WS2_32.dll_ntohl
add edi, 4
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x5a4b27
cmp dword [esi + 0x90], eax
jne 0x5a4b2c
mov byte [esp + 0x13], 1
test ebp, ebp
jbe 0x5a4ffa
xor ecx, ecx
mov eax, ebp
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4e47
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x5a4ffa
mov ecx, dword [esp + 0x14]
mov eax, ebp
shl eax, 4
push eax
push 0
push ecx
call fcn.00621270
add esp, 0xc
test ebp, ebp
jbe 0x5a4c65
mov edx, dword [esp + 0x6c]
mov eax, ebx
and eax, 0x200
mov dword [esp + 0x48], eax
mov ebp, ebx
mov eax, ebx
and ebx, 0x800
and eax, 0x400
mov dword [esp + 0x50], ebx
lea ebx, [edi + edx]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
and ebp, 0x100
add edi, 4
mov dword [esp + 0x34], eax
test ebp, ebp
je 0x5a4bca
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [edi - 4], eax
add ebx, 4
jmp 0x5a4be3
test byte [esp + 0x20], 8
je 0x5a4bda
mov ecx, dword [esp + 0x28]
mov dword [edi - 4], ecx
jmp 0x5a4be3
mov edx, dword [esi + 0x104]
mov dword [edi - 4], edx
cmp dword [esp + 0x48], 0
je 0x5a4bf9
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [edi], eax
add ebx, 4
jmp 0x5a4c10
test byte [esp + 0x20], 0x10
je 0x5a4c08
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
jmp 0x5a4c10
mov ecx, dword [esi + 0x108]
mov dword [edi], ecx
cmp dword [esp + 0x4c], 0
je 0x5a4c27
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [edi + 4], eax
add ebx, 4
jmp 0x5a4c35
cmp byte [esp + 0x12], 0
je 0x5a4c35
mov edx, dword [esp + 0x30]
mov dword [edi + 4], edx
cmp dword [esp + 0x50], 0
je 0x5a4c4c
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [edi + 8], eax
add ebx, 4
jmp 0x5a4c53
mov dword [edi + 8], 0
add edi, 0x10
sub dword [esp + 0x34], 1
jne 0x5a4bb6
mov ebp, dword [esp + 0x38]
cmp byte [esp + 0x13], 0
je 0x5a4c77
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], eax
inc dword [esi + 0x18]
xor edi, edi
xor ecx, ecx
lea edx, [edi + 4]
cmp dword [esi + 0x60], ecx
jne 0x5a4ca2
mov eax, ebp
mul edx
seto cl
mov dword [esi + 0x5c], ebp
neg ecx
or ecx, eax
push ecx
call fcn.005f4e47
add esp, 4
mov dword [esi + 0x60], eax
jmp 0x5a4ce8
mov edi, dword [esi + 0x5c]
lea eax, [edi + ebp]
mov dword [esi + 0x5c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4e47
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5a5010
mov ecx, dword [esi + 0x60]
lea eax, [edi*4]
push eax
push ecx
push ebx
call fcn.00622730
mov edx, dword [esi + 0x60]
push edx
call fcn.005f4e52
add esp, 0x10
mov dword [esi + 0x60], ebx
test ebp, ebp
jbe 0x5a4d06
mov eax, dword [esp + 0x14]
add eax, 4
mov ecx, ebp
mov ebx, dword [eax]
mov edx, dword [esi + 0x60]
mov dword [edx + edi*4], ebx
inc edi
add eax, 0x10
sub ecx, 1
jne 0x5a4cf5
mov eax, dword [esi + 0xd4]
xor ebx, ebx
cmp eax, ebx
je 0x5a4d17
cmp dword [eax + 4], ebp
je 0x5a4d7a
push 0x10
cmp dword [esi + 0xd0], ebx
jne 0x5a4d2e
call fcn.005f4e18
mov dword [esi + 0xd0], eax
jmp 0x5a4d45
call fcn.005f4e18
mov ecx, dword [esi + 0xd4]
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 0xd4]
mov eax, dword [edx + 0xc]
add esp, 4
mov dword [esi + 0xd4], eax
cmp eax, ebx
je 0x5a5010
mov dword [eax + 0xc], ebx
mov ecx, dword [esi + 0xd4]
mov dword [ecx + 8], 1
mov edx, dword [esi + 0xd4]
mov eax, dword [esi + 0x18]
mov dword [edx], eax
mov ecx, dword [esi + 0xd4]
mov dword [ecx + 4], ebp
push 0x10
cmp dword [esi + 0xd8], ebx
jne 0x5a4d97
call fcn.005f4e18
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], eax
jmp 0x5a4db4
call fcn.005f4e18
mov edx, dword [esi + 0xdc]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xdc]
mov ecx, dword [eax + 8]
mov dword [esi + 0xdc], ecx
mov eax, dword [esi + 0xdc]
add esp, 4
cmp eax, ebx
je 0x5a5010
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ebx
mov eax, dword [esi + 0xdc]
mov dword [eax], edx
mov dword [eax + 4], ecx
cmp dword [esi + 0x90], ebx
je 0x5a4e06
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0xdc]
cdq
sub eax, dword [esp + 0x7c]
sbb edx, dword [esp + 0x80]
add eax, dword [esp + 0x58]
adc edx, dword [esp + 0x5c]
add dword [ecx], eax
adc dword [ecx + 4], edx
xor ebx, ebx
cmp dword [esp + 0x44], ebx
je 0x5a4e6b
mov dword [esp + 0x44], ebx
push 8
cmp dword [esi + 0xe0], ebx
jne 0x5a4e2f
call fcn.005f4e18
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], eax
jmp 0x5a4e4c
call fcn.005f4e18
mov edx, dword [esi + 0xe4]
mov dword [edx + 4], eax
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax + 4]
mov dword [esi + 0xe4], ecx
mov eax, dword [esi + 0xe4]
add esp, 4
cmp eax, ebx
je 0x5a5010
mov dword [eax + 4], ebx
mov edx, dword [esi + 0xe4]
sub edi, ebp
inc edi
mov dword [edx], edi
xor ebx, ebx
test ebp, ebp
jbe 0x5a4f38
mov edi, dword [esp + 0x14]
lea esp, [esp]
cmp dword [esi + 0xc8], 0
jne 0x5a4ec7
push 0xc
call fcn.005f4e18
add esp, 4
mov dword [esi + 0xc8], eax
test eax, eax
je 0x5a5010
mov dword [eax + 8], 0
mov eax, dword [esi + 0xc8]
mov dword [esi + 0xcc], eax
mov dword [eax], 1
mov eax, dword [esi + 0xcc]
mov ecx, dword [edi]
mov dword [eax + 4], ecx
jmp 0x5a4f20
mov eax, dword [esi + 0xcc]
mov edx, dword [eax + 4]
cmp edx, dword [edi]
jne 0x5a4ed8
inc dword [eax]
jmp 0x5a4f20
push 0xc
call fcn.005f4e18
mov ecx, dword [esi + 0xcc]
mov dword [ecx + 8], eax
mov edx, dword [esi + 0xcc]
mov eax, dword [edx + 8]
add esp, 4
test eax, eax
je 0x5a5010
mov dword [esi + 0xcc], eax
mov dword [eax + 8], 0
mov eax, dword [esi + 0xcc]
mov dword [eax], 1
mov ecx, dword [esi + 0xcc]
mov edx, dword [edi]
mov dword [ecx + 4], edx
mov eax, dword [esi + 0xcc]
mov ecx, dword [eax + 4]
add dword [esi + 0x7c], ecx
inc ebx
add edi, 0x10
cmp ebx, ebp
jb 0x5a4e80
xor ebx, ebx
test ebp, ebp
jbe 0x5a4fed
mov edi, dword [esp + 0x14]
add edi, 0xc
lea esp, [esp]
cmp dword [esi + 0x9c], 0
jne 0x5a4f8c
push 0xc
call fcn.005f4e18
add esp, 4
mov dword [esi + 0x9c], eax
test eax, eax
je 0x5a5010
mov dword [eax + 8], 0
mov eax, dword [esi + 0x9c]
mov dword [esi + 0xc0], eax
mov dword [eax], 1
jmp 0x5a4fd6
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax + 4]
cmp ecx, dword [edi]
jne 0x5a4f9d
inc dword [eax]
jmp 0x5a4fe1
push 0xc
call fcn.005f4e18
mov edx, dword [esi + 0xc0]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc0]
mov eax, dword [eax + 8]
add esp, 4
test eax, eax
je 0x5a5010
mov dword [esi + 0xc0], eax
mov dword [eax + 8], 0
mov ecx, dword [esi + 0xc0]
mov dword [ecx], 1
mov edx, dword [esi + 0xc0]
mov eax, dword [edi]
mov dword [edx + 4], eax
inc ebx
add edi, 0x10
cmp ebx, ebp
jb 0x5a4f50
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005f4e52
add esp, 4
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x70], eax
ja 0x5a4930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x18