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

Disassembly:
mov ecx, dword [esp + 0x20]
sub esp, 0x48
mov edx, dword [esp + 0x8c]
mov eax, ecx
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x6c]
sub eax, ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x80]
cmp edx, dword [esi + 0xac4]
jg 0x1046061e
cmp eax, 3
jl 0x1046061e
lea eax, [ebp - 1]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edx, eax
mov dword [esp + 0x64], eax
sub edx, ebp
sub ecx, eax
push edx
push ecx
push eax
mov eax, dword [esp + 0xa8]
push edx
push eax
push dword [esp + 0xac]
push closesocket
push dword [esp + 0xac]
push dword [esp + 0xac]
push dword [esp + 0xac]
push dword [esp + 0xac]
push edi
push ebx
push esi
push dword [esp + 0xa8]
push dword [esp + 0xa4]
push dword [esp + 0xa0]
push dword [esp + 0xa0]
call fcn.10460a10
mov eax, dword [esp + 0xe4]
add esp, 0x48
mov edx, dword [esp + 0x94]
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
cmp eax, edx
jge 0x10460776
push ecx
push dword [esp + 0x9c]
push edx
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push edi
push ebx
push dword [esp + 0x88]
push ebp
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push esi
push dword [esp + 0x9c]
push dword [esp + 0x9c]
call fcn.104604b0
mov eax, dword [esp + 0xe0]
push eax
push dword [esp + 0xe0]
push dword [esp + 0xdc]
push edi
push ebx
push esi
call fcn.10460b80
mov ebp, dword [esp + 0xc0]
add esp, 0x5c
mov ecx, dword [esp + 0x78]
inc ebp
mov edx, dword [esp + 0x14]
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x9c], edx
mov dword [esp + 0x74], ebp
cmp edx, dword [esi + 0xac4]
jle 0x104604e5
cmp ebp, ecx
jge 0x1046076e
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x74], eax
nop
mov eax, dword [edi]
push 0
push 0
push 0
mov byte [esi + eax], 1
mov eax, dword [edi]
push 0
push dword [esp + 0x84]
mov byte [eax + esi + 0xfa], 0
mov ecx, dword [edi]
mov al, byte [ebx]
push ebp
push dword [esp + 0x88]
mov byte [ecx + esi + 0x1f4], al
mov ecx, edx
mov eax, dword [edi]
push dword [esp + 0x84]
push dword [esp + 0x80]
mov dword [esi + eax*4 + 0x2f0], 6
mov eax, dword [edi]
push dword [esp + 0x80]
mov byte [eax + esi + 0x1680], 1
mov eax, dword [edi]
mov byte [eax + esi + 0x177a], 1
mov eax, dword [esi + 0xac0]
cmp eax, edx
cmovg ecx, eax
mov eax, dword [esp + 0xc0]
mov dword [esi + 0xac0], ecx
mov ecx, dword [edi]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 0x1c64], eax
call fcn.10147810
mov ecx, dword [edi]
add esp, 0x28
mov dword [esi + ecx*4 + 0x6d8], eax
mov eax, dword [esp + 0x98]
inc dword [eax]
cmp dword [esp + 0x8c], 0
je 0x10460717
mov edx, dword [esp + 0x84]
xor ecx, ecx
mov eax, dword [edi]
cmp dword [edx], 1
setg cl
inc ecx
mov dword [esi + eax*4 + 0x2fec], ecx
inc dword [edx]
mov eax, dword [esp + 0x88]
cmp dword [edx], eax
jle 0x1046070d
mov dword [edx], 1
mov eax, dword [edi]
mov byte [eax + esi + 0x33d4], 1
mov edx, dword [edi]
mov ecx, dword [ebx]
mov dword [esp + 0x64], ecx
mov eax, dword [esi + edx*4 + 0x2fec]
test eax, eax
jle 0x10460754
cmp eax, 1
jne 0x10460738
mov eax, dword [esp + 0x90]
mov dword [eax], ecx
mov ecx, dword [esp + 0x90]
movzx eax, byte [edx + esi + 0xfa]
sub eax, dword [ecx]
add eax, dword [esp + 0x64]
mov dword [esi + edx*4 + 0x187c], eax
inc dword [edi]
inc ebp
inc dword [ebx]
dec dword [esp + 0x74]
mov edx, dword [esp + 0x9c]
cmp ebp, dword [esp + 0x78]
jl 0x10460630
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ecx, dword [esp + 0x64]
lea eax, [ecx - 1]
inc ecx
add eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
add eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x10]
mov edx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
sub edx, ebp
sub eax, dword [esp + 0x10]
sar ecx, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
sub ecx, ebp
mov ebp, dword [esp + 0x1c]
sub eax, ebp
mov dword [esp + 0x3c], ebp
sub ebp, dword [esp + 0x64]
dec ebp
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
nop dword [eax + eax]
push dword [esp + eax + 0x20]
push dword [esp + eax + 0x2c]
push dword [esp + eax + 0x40]
push dword [esp + eax + 0x54]
push dword [esp + 0x24]
push dword [esp + 0xac]
push dword [esp + 0xac]
push dword [esp + 0xac]
push dword [esp + 0xac]
push dword [esp + 0xac]
push ebp
push edi
push ebx
push esi
push dword [esp + 0xa8]
push dword [esp + 0xa4]
push dword [esp + 0xa0]
push dword [esp + 0xa0]
call fcn.10460a10
mov eax, dword [esp + 0x60]
add esp, 0x48
add eax, 4
mov dword [esp + 0x18], eax
cmp eax, 8
jl 0x104607f0
mov ebp, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ebp
lea eax, [ebp + 1]
mov dword [esp + 0x54], 0xffffffff
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x2c], eax
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
lea eax, [edx - 1]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x4c], eax
add eax, 2
xor edx, edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x9c], edx
nop dword [eax]
nop word [eax + eax]
push eax
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push ebp
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push edi
push ebx
push dword [esp + edx + 0x5c]
push dword [esp + edx + 0x50]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push esi
push dword [esp + 0x9c]
push dword [esp + 0x9c]
call fcn.104604b0
mov edx, dword [esp + 0xe0]
add esp, 0x44
cmp dword [esp + edx + 0x48], 0xffffffff
je 0x104609e3
mov eax, dword [edi]
mov byte [esi + eax], 5
mov eax, dword [edi]
mov byte [eax + esi + 0xfa], 0
mov ecx, dword [edi]
mov al, byte [ebx]
mov byte [ecx + esi + 0x1f4], al
mov eax, dword [edi]
mov ecx, dword [esp + edx + 0x48]
mov dword [esi + eax*4 + 0x2f0], ecx
mov eax, dword [edi]
mov byte [eax + esi + 0x1680], 1
mov eax, dword [edi]
mov byte [eax + esi + 0x177a], 1
mov ecx, dword [edi]
mov eax, dword [esp + 0x98]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 0x1c64], eax
mov eax, dword [esp + 0x98]
inc dword [eax]
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [esp + 0x9c], eax
cmp dword [esi + ecx*4 + 0x2fec], 0
jle 0x104609df
cmp dword [esi + ecx*4 + 0x2fec], 1
jne 0x104609c6
mov dword [ebp], eax
movzx eax, byte [ecx + esi + 0xfa]
sub eax, dword [ebp]
add eax, dword [esp + 0x9c]
mov dword [esi + ecx*4 + 0x187c], eax
inc dword [edi]
inc dword [ebx]
mov eax, dword [esp + 0x78]
add edx, 4
mov dword [esp + 0x9c], edx
cmp edx, 0x10
jl 0x104608e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret