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

Disassembly:
sub esp, 0x54
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x12], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x1c], ebx
nop
mov eax, dword [ebx + ebp]
lea esi, [ebx + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov esi, dword [esi + 4]
sub eax, 8
add ebx, 8
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], ebx
cmp esi, 0x64686674
jne 0x5a19ea
mov cl, byte [ebx + ebp + 3]
xor eax, eax
mov word [esp + 0x69], ax
mov byte [esp + 0x6b], al
mov ax, word [ebx + ebp + 1]
lea esi, [ebx + 1]
mov word [esp + 0x69], ax
mov byte [esp + 0x6b], cl
mov byte [esp + 0x68], 0
mov edx, dword [esp + 0x68]
push edx
call sub.WS2_32.dll_ntohl
mov dword [esp + 0x18], eax
mov eax, dword [esi + ebp + 3]
add esi, 3
push eax
call sub.WS2_32.dll_ntohl
add esi, 4
test byte [esp + 0x18], 1
je 0x5a1978
mov eax, dword [esi + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov dword [esp + 0x34], eax
mov eax, dword [esi + ebp + 4]
push eax
call sub.WS2_32.dll_ntohl
cdq
mov ebx, eax
mov eax, dword [esp + 0x34]
push 1
mov dword [esp + 0x64], edx
cdq
push 0
push edx
push eax
call fcn.00621c40
mov ecx, dword [esp + 0x60]
add ebx, eax
adc ecx, edx
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
add esi, 8
test byte [esp + 0x18], 2
je 0x5a198b
mov edx, dword [esi + ebp]
push edx
call sub.WS2_32.dll_ntohl
add esi, 4
test byte [esp + 0x18], 8
je 0x5a19b1
mov eax, dword [esi + ebp]
push eax
call sub.WS2_32.dll_ntohl
add esi, 4
mov dword [esp + 0x28], eax
cmp eax, 0x10000
jne 0x5a19b1
mov dword [esp + 0x28], 0
test byte [esp + 0x18], 0x10
je 0x5a19c8
mov eax, dword [esi + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov dword [esp + 0x2c], eax
add esi, 4
test byte [esp + 0x18], 0x20
je 0x5a1bc6
mov esi, dword [esi + ebp]
push esi
call sub.WS2_32.dll_ntohl
mov dword [esp + 0x30], eax
mov byte [esp + 0x12], 1
jmp 0x5a1bc6
cmp esi, 0x6e757274
jne 0x5a1bc6
mov cl, byte [ebx + ebp + 3]
xor eax, eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
mov ax, word [ebx + ebp + 1]
lea esi, [ebx + 1]
mov word [esp + 0x21], ax
mov byte [esp + 0x23], cl
mov byte [esp + 0x20], 0
mov edx, dword [esp + 0x20]
push edx
call sub.WS2_32.dll_ntohl
mov ebx, eax
mov eax, dword [esi + ebp + 3]
add esi, 3
push eax
call sub.WS2_32.dll_ntohl
add esi, 4
mov dword [esp + 0x14], eax
test bl, 1
je 0x5a1a50
mov eax, dword [esi + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov dword [esp + 0x3c], eax
add esi, 4
test bl, 4
je 0x5a1a76
mov eax, dword [esi + ebp]
push eax
call sub.WS2_32.dll_ntohl
add esi, 4
mov dword [esp + 0x38], eax
test eax, eax
jne 0x5a1a71
cmp dword [edi + 0x90], eax
jne 0x5a1a76
mov byte [esp + 0x13], 1
cmp dword [esp + 0x14], 0
jbe 0x5a1bc2
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f15c2
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x5a1bc2
mov ecx, dword [esp + 0x14]
shl ecx, 4
push ecx
push 0
push eax
call fcn.0061d9e0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jbe 0x5a1bb0
mov edx, ebx
and edx, 0x200
mov ecx, ebx
mov dword [esp + 0x44], edx
mov edx, ebx
and ebx, 0x800
mov dword [esp + 0x4c], ebx
lea ebx, [esi + ebp]
mov esi, dword [esp + 0x1c]
and ecx, 0x100
and edx, 0x400
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
add esi, 4
mov dword [esp + 0x34], eax
jmp 0x5a1b0b
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x5a1b1c
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
add ebx, 4
jmp 0x5a1b32
test byte [esp + 0x18], 8
je 0x5a1b2c
mov edx, dword [esp + 0x28]
mov dword [esi - 4], edx
jmp 0x5a1b35
mov eax, dword [edi + 0xf8]
mov dword [esi - 4], eax
cmp dword [esp + 0x44], 0
je 0x5a1b4b
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [esi], eax
add ebx, 4
jmp 0x5a1b62
test byte [esp + 0x18], 0x10
je 0x5a1b5a
mov ecx, dword [esp + 0x2c]
mov dword [esi], ecx
jmp 0x5a1b62
mov edx, dword [edi + 0xfc]
mov dword [esi], edx
cmp dword [esp + 0x48], 0
je 0x5a1b76
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
add ebx, 4
jmp 0x5a1b81
cmp byte [esp + 0x12], 0
je 0x5a1b84
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
cmp dword [esp + 0x4c], 0
je 0x5a1b9b
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [esi + 8], eax
add ebx, 4
jmp 0x5a1ba2
mov dword [esi + 8], 0
add esi, 0x10
sub dword [esp + 0x34], 1
jne 0x5a1b07
cmp byte [esp + 0x13], 0
je 0x5a1bc2
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov dword [edx + 8], ecx
mov ebx, dword [esp + 0x24]
add ebx, dword [esp + 0x50]
cmp dword [esp + 0x6c], ebx
ja 0x5a18c0
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
je 0x5a1f09
inc dword [edi + 0x18]
xor ebp, ebp
xor ecx, ecx
lea edx, [ebx + 4]
cmp dword [edi + 0x60], ebx
jne 0x5a1c0f
mov esi, dword [esp + 0x14]
mov eax, esi
mul edx
seto cl
mov dword [edi + 0x5c], esi
neg ecx
or ecx, eax
push ecx
call fcn.005f15c2
add esp, 4
mov dword [edi + 0x60], eax
jmp 0x5a1c58
mov ebp, dword [edi + 0x5c]
mov eax, dword [esp + 0x14]
add eax, ebp
mov dword [edi + 0x5c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f15c2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x5a1f09
mov ecx, dword [edi + 0x60]
lea eax, [ebp*4]
push eax
push ecx
push esi
call fcn.0061eea0
mov edx, dword [edi + 0x60]
push edx
call fcn.005f15b7
add esp, 0x10
mov dword [edi + 0x60], esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
jbe 0x5a1c85
mov eax, dword [esp + 0x1c]
add eax, 4
mov ecx, esi
lea esp, [esp]
mov esi, dword [eax]
mov edx, dword [edi + 0x60]
mov dword [edx + ebp*4], esi
inc ebp
add eax, 0x10
sub ecx, 1
jne 0x5a1c70
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
cmp eax, ebx
je 0x5a1c94
cmp dword [eax + 4], esi
je 0x5a1cf7
push 0x10
cmp dword [edi + 0xd0], ebx
jne 0x5a1cab
call fcn.005f1588
mov dword [edi + 0xd0], eax
jmp 0x5a1cc2
call fcn.005f1588
mov ecx, dword [edi + 0xd4]
mov dword [ecx + 0xc], eax
mov edx, dword [edi + 0xd4]
mov eax, dword [edx + 0xc]
add esp, 4
mov dword [edi + 0xd4], eax
cmp eax, ebx
je 0x5a1f09
mov dword [eax + 0xc], ebx
mov ecx, dword [edi + 0xd4]
mov dword [ecx + 8], 1
mov edx, dword [edi + 0xd4]
mov eax, dword [edi + 0x18]
mov dword [edx], eax
mov ecx, dword [edi + 0xd4]
mov dword [ecx + 4], esi
push 0x10
cmp dword [edi + 0xd8], ebx
jne 0x5a1d14
call fcn.005f1588
mov dword [edi + 0xd8], eax
mov dword [edi + 0xdc], eax
jmp 0x5a1d31
call fcn.005f1588
mov edx, dword [edi + 0xdc]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0xdc]
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xdc], ecx
mov eax, dword [edi + 0xdc]
add esp, 4
cmp eax, ebx
je 0x5a1f09
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ebx
mov eax, dword [edi + 0xdc]
mov dword [eax], edx
mov dword [eax + 4], ecx
cmp dword [edi + 0x90], ebx
je 0x5a1d80
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0xdc]
cdq
sub eax, dword [esp + 0x78]
sbb edx, dword [esp + 0x7c]
add eax, dword [esp + 0x54]
adc edx, dword [esp + 0x58]
add dword [ecx], eax
adc dword [ecx + 4], edx
mov edx, dword [edi + 0xdc]
sub ebp, esi
inc ebp
mov dword [edx + 8], ebp
xor ebp, ebp
cmp esi, ebx
jbe 0x5a1e55
mov esi, dword [esp + 0x1c]
lea ebx, [ebx]
cmp dword [edi + 0xc8], ebx
jne 0x5a1de2
push 0xc
call fcn.005f1588
add esp, 4
mov dword [edi + 0xc8], eax
cmp eax, ebx
je 0x5a1f09
mov dword [eax + 8], ebx
mov eax, dword [edi + 0xc8]
mov dword [edi + 0xcc], eax
mov dword [eax], 1
mov eax, dword [edi + 0xcc]
mov ecx, dword [esi]
mov dword [eax + 4], ecx
jmp 0x5a1e37
mov eax, dword [edi + 0xcc]
mov edx, dword [eax + 4]
cmp edx, dword [esi]
jne 0x5a1df3
inc dword [eax]
jmp 0x5a1e37
push 0xc
call fcn.005f1588
mov ecx, dword [edi + 0xcc]
mov dword [ecx + 8], eax
mov edx, dword [edi + 0xcc]
mov eax, dword [edx + 8]
add esp, 4
cmp eax, ebx
je 0x5a1f09
mov dword [edi + 0xcc], eax
mov dword [eax + 8], ebx
mov eax, dword [edi + 0xcc]
mov dword [eax], 1
mov ecx, dword [edi + 0xcc]
mov edx, dword [esi]
mov dword [ecx + 4], edx
mov eax, dword [edi + 0xcc]
mov ecx, dword [eax + 4]
add dword [edi + 0x7c], ecx
inc ebp
add esi, 0x10
cmp ebp, dword [esp + 0x14]
jb 0x5a1da0
mov esi, dword [esp + 0x14]
xor ebp, ebp
cmp esi, ebx
jbe 0x5a1efc
mov esi, dword [esp + 0x1c]
add esi, 0xc
cmp dword [edi + 0x9c], ebx
jne 0x5a1e9d
push 0xc
call fcn.005f1588
add esp, 4
mov dword [edi + 0x9c], eax
cmp eax, ebx
je 0x5a1f09
mov dword [eax + 8], ebx
mov eax, dword [edi + 0x9c]
mov dword [edi + 0xc0], eax
mov dword [eax], 1
jmp 0x5a1ee3
mov eax, dword [edi + 0xc0]
mov ecx, dword [eax + 4]
cmp ecx, dword [esi]
jne 0x5a1eae
inc dword [eax]
jmp 0x5a1eee
push 0xc
call fcn.005f1588
mov edx, dword [edi + 0xc0]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc0]
mov eax, dword [eax + 8]
add esp, 4
cmp eax, ebx
je 0x5a1f09
mov dword [edi + 0xc0], eax
mov dword [eax + 8], ebx
mov ecx, dword [edi + 0xc0]
mov dword [ecx], 1
mov edx, dword [edi + 0xc0]
mov eax, dword [esi]
mov dword [edx + 4], eax
inc ebp
add esi, 0x10
cmp ebp, dword [esp + 0x14]
jb 0x5a1e66
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005f15b7
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x18