Function at 0x5a44e0
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 0x5a4524
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 0x5a464f
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 0x5a45e1
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.00624b80
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 0x5a45f2
mov ecx, dword [edi + ebp]
push ecx
call sub.WS2_32.dll_ntohl
add edi, 4
test bl, 8
je 0x5a4616
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 0x5a4616
mov dword [esp + 0x28], 0
test bl, 0x10
je 0x5a462b
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 0x5a4bea
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 0x5a4bea
cmp eax, 0x74646674
jne 0x5a4681
cmp byte [edi + 8], 0
jne 0x5a466a
mov eax, dword [edi + 0xc]
push eax
call sub.WS2_32.dll_ntohl
jmp 0x5a4bea
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 0x5a4bea
cmp eax, 0x6e757274
jne 0x5a4bea
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 0x5a46f2
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 0x5a471c
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 0x5a4717
cmp dword [esi + 0x90], eax
jne 0x5a471c
mov byte [esp + 0x13], 1
test ebp, ebp
jbe 0x5a4bea
xor ecx, ecx
mov eax, ebp
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4522
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x5a4bea
mov ecx, dword [esp + 0x14]
mov eax, ebp
shl eax, 4
push eax
push 0
push ecx
call fcn.00620920
add esp, 0xc
test ebp, ebp
jbe 0x5a4855
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 0x5a47ba
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [edi - 4], eax
add ebx, 4
jmp 0x5a47d3
test byte [esp + 0x20], 8
je 0x5a47ca
mov ecx, dword [esp + 0x28]
mov dword [edi - 4], ecx
jmp 0x5a47d3
mov edx, dword [esi + 0x104]
mov dword [edi - 4], edx
cmp dword [esp + 0x48], 0
je 0x5a47e9
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [edi], eax
add ebx, 4
jmp 0x5a4800
test byte [esp + 0x20], 0x10
je 0x5a47f8
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
jmp 0x5a4800
mov ecx, dword [esi + 0x108]
mov dword [edi], ecx
cmp dword [esp + 0x4c], 0
je 0x5a4817
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [edi + 4], eax
add ebx, 4
jmp 0x5a4825
cmp byte [esp + 0x12], 0
je 0x5a4825
mov edx, dword [esp + 0x30]
mov dword [edi + 4], edx
cmp dword [esp + 0x50], 0
je 0x5a483c
mov eax, dword [ebx]
push eax
call sub.WS2_32.dll_ntohl
mov dword [edi + 8], eax
add ebx, 4
jmp 0x5a4843
mov dword [edi + 8], 0
add edi, 0x10
sub dword [esp + 0x34], 1
jne 0x5a47a6
mov ebp, dword [esp + 0x38]
cmp byte [esp + 0x13], 0
je 0x5a4867
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 0x5a4892
mov eax, ebp
mul edx
seto cl
mov dword [esi + 0x5c], ebp
neg ecx
or ecx, eax
push ecx
call fcn.005f4522
add esp, 4
mov dword [esi + 0x60], eax
jmp 0x5a48d8
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.005f4522
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5a4c00
mov ecx, dword [esi + 0x60]
lea eax, [edi*4]
push eax
push ecx
push ebx
call fcn.00621de0
mov edx, dword [esi + 0x60]
push edx
call fcn.005f4517
add esp, 0x10
mov dword [esi + 0x60], ebx
test ebp, ebp
jbe 0x5a48f6
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 0x5a48e5
mov eax, dword [esi + 0xd4]
xor ebx, ebx
cmp eax, ebx
je 0x5a4907
cmp dword [eax + 4], ebp
je 0x5a496a
push 0x10
cmp dword [esi + 0xd0], ebx
jne 0x5a491e
call fcn.005f44e8
mov dword [esi + 0xd0], eax
jmp 0x5a4935
call fcn.005f44e8
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 0x5a4c00
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 0x5a4987
call fcn.005f44e8
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], eax
jmp 0x5a49a4
call fcn.005f44e8
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 0x5a4c00
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 0x5a49f6
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 0x5a4a5b
mov dword [esp + 0x44], ebx
push 8
cmp dword [esi + 0xe0], ebx
jne 0x5a4a1f
call fcn.005f44e8
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], eax
jmp 0x5a4a3c
call fcn.005f44e8
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 0x5a4c00
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 0x5a4b28
mov edi, dword [esp + 0x14]
lea esp, [esp]
cmp dword [esi + 0xc8], 0
jne 0x5a4ab7
push 0xc
call fcn.005f44e8
add esp, 4
mov dword [esi + 0xc8], eax
test eax, eax
je 0x5a4c00
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 0x5a4b10
mov eax, dword [esi + 0xcc]
mov edx, dword [eax + 4]
cmp edx, dword [edi]
jne 0x5a4ac8
inc dword [eax]
jmp 0x5a4b10
push 0xc
call fcn.005f44e8
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 0x5a4c00
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 0x5a4a70
xor ebx, ebx
test ebp, ebp
jbe 0x5a4bdd
mov edi, dword [esp + 0x14]
add edi, 0xc
lea esp, [esp]
cmp dword [esi + 0x9c], 0
jne 0x5a4b7c
push 0xc
call fcn.005f44e8
add esp, 4
mov dword [esi + 0x9c], eax
test eax, eax
je 0x5a4c00
mov dword [eax + 8], 0
mov eax, dword [esi + 0x9c]
mov dword [esi + 0xc0], eax
mov dword [eax], 1
jmp 0x5a4bc6
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax + 4]
cmp ecx, dword [edi]
jne 0x5a4b8d
inc dword [eax]
jmp 0x5a4bd1
push 0xc
call fcn.005f44e8
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 0x5a4c00
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 0x5a4b40
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005f4517
add esp, 4
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x70], eax
ja 0x5a4520
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x18