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

Disassembly:
sub esp, 0x50
mov edx, dword [0x49d93c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push ebx
push ebp
push esi
mov esi, edx
imul esi, eax
add esi, ecx
push edi
mov edi, dword [esp + 0x64]
lea esi, [edi + esi*4]
mov dword [esp + 0x24], esi
lea esi, [eax + eax]
mov eax, dword [esp + 0x6c]
cmp eax, 0x1f
lea ebx, [ecx + ecx]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], esi
jle 0x414ee9
mov edi, 0x1f
mov dword [esp + 0x38], edi
jmp 0x414eef
mov dword [esp + 0x38], eax
mov edi, eax
lea ecx, [edi + ebx]
mov dword [esp + 0x78], ecx
mov eax, ebx
sub eax, edi
mov ecx, esi
sub ecx, edi
test eax, eax
lea ebp, [edi + esi]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], ebp
jge 0x414f19
mov dword [esp + 0x64], 0
mov ebp, dword [esp + 0x78]
lea eax, [edx + edx - 0x20]
cmp ebp, eax
jle 0x414f29
mov dword [esp + 0x78], eax
xor ebp, ebp
cmp ecx, ebp
jge 0x414f33
mov dword [esp + 0x6c], ebp
mov eax, dword [0x49d920]
mov ecx, dword [esp + 0x74]
lea eax, [eax + eax - 0x20]
cmp ecx, eax
jle 0x414f48
mov dword [esp + 0x74], eax
cmp dword [0x49d940], 1
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
push bind
jne 0x41513a
mov eax, dword [esp + 0x28]
push edx
imul edx, esi
lea ecx, [ebx + edx*2]
mov edx, dword [esp + 0x70]
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00414c10
sub eax, 0x64
add esp, 0x10
cmp edi, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 1
jl 0x4150f0
mov edi, dword [esp + 0x10]
mov ecx, dword [0x49d93c]
or esi, 0xffffffff
dec edi
imul edi, ecx
shl edi, 1
neg ecx
mov eax, 8
shl ecx, 1
mov dword [esp + 0x34], 6
mov dword [esp + 0x30], 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ecx
jmp 0x414fd4
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
add edx, esi
mov dword [esp + 0x1c], edx
xor edx, edx
add ebx, esi
test eax, eax
mov dword [esp + 0x28], edx
jle 0x4150b3
mov ebp, esi
mov dword [esp + 0x18], esi
cmp ebx, dword [esp + 0x64]
jl 0x415054
cmp ebx, dword [esp + 0x78]
jg 0x415054
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x6c]
jl 0x415054
cmp eax, dword [esp + 0x74]
jg 0x415054
mov eax, dword [esp + 0x14]
mov ecx, dword [0x49d93c]
mov edx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x70]
push edx
lea eax, [edi + ebx]
lea edx, [ecx + eax*4]
push edx
call fcn.00414c10
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
add esp, 0x10
cmp eax, ecx
jge 0x415050
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
add eax, eax
cmp edx, eax
jge 0x41506a
mov eax, dword [esp + 0x18]
inc ebx
inc eax
mov dword [esp + 0x18], eax
jmp 0x41509e
cmp edx, dword [esp + 0x30]
jge 0x415080
inc dword [esp + 0x1c]
mov eax, dword [0x49d93c]
add eax, eax
add edi, eax
inc ebp
jmp 0x41509e
cmp edx, dword [esp + 0x34]
jge 0x415092
mov eax, dword [esp + 0x18]
dec ebx
dec eax
mov dword [esp + 0x18], eax
jmp 0x41509e
mov eax, dword [esp + 0x1c]
dec eax
add edi, ecx
mov dword [esp + 0x1c], eax
dec ebp
mov eax, dword [esp + 0x44]
inc edx
cmp edx, eax
mov dword [esp + 0x28], edx
jl 0x414ff4
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
add ebx, 4
inc edx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x38]
add edi, ecx
add eax, 8
add ebp, 6
dec esi
cmp edx, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ebp
jle 0x414fd0
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
and ebp, reloc.WS2_32.dll_accept
mov dword [ecx], eax
jns 0x41510a
dec ebp
or ebp, 0xfffffffe
inc ebp
mov esi, dword [esp + 0x4c]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
and esi, reloc.WS2_32.dll_accept
mov dword [ecx + 8], ebp
mov dword [ecx + 4], eax
jns 0x415128
dec esi
or esi, 0xfffffffe
inc esi
mov edx, dword [esp + 0x14]
pop edi
mov dword [ecx + 0xc], esi
pop esi
pop ebp
mov dword [ecx + 0x10], edx
pop ebx
add esp, 0x50
ret
lea ecx, [edi + edi + 2]
mov eax, 0x55555556
imul ecx
mov eax, dword [0x49d93c]
mov ecx, dword [esp + 0x6c]
push eax
imul eax, esi
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov edx, dword [esp + 0x2c]
push edx
lea eax, [ebx + eax*2]
lea edx, [ecx + eax*4]
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ebp
mov edi, ebp
call fcn.00414c10
add esp, 0x10
sub eax, 0x64
mov dword [esp + 0x14], eax
cmp ebp, 1
jge 0x415190
cmp edi, 1
jl 0x4150ec
mov eax, dword [esp + 0x20]
mov edx, ebx
lea ecx, [eax + ebp]
sub ebx, ebp
cmp ebx, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], ecx
jg 0x4152a5
nop
test ebp, ebp
je 0x41528d
cmp ebx, dword [esp + 0x64]
jl 0x415283
cmp ebx, dword [esp + 0x78]
jg 0x415283
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
sub esi, edi
add eax, edi
cmp esi, eax
jg 0x415283
mov eax, dword [esp + 0x30]
mov ecx, dword [0x49d93c]
mov edx, dword [esp + 0x68]
mov ebp, esi
sub ebp, eax
mov eax, edi
imul eax, ecx
shl eax, 3
imul ecx, esi
lea ecx, [ebx + ecx*2]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ecx
jmp 0x415210
test edi, edi
je 0x415277
cmp esi, dword [esp + 0x6c]
jl 0x415265
cmp esi, dword [esp + 0x74]
jg 0x415265
mov edx, dword [esp + 0x14]
mov eax, dword [0x49d93c]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
call fcn.00414c10
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp eax, ecx
jge 0x415261
mov edx, dword [esp + 0x2c]
mov ecx, ebx
sub ecx, edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x44]
add dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
add esi, edi
add ecx, edi
add ebp, edi
cmp esi, ecx
jle 0x415210
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
add ebx, ebp
cmp ebx, ecx
jle 0x4151b0
mov eax, dword [esp + 0x20]
cmp edx, eax
jge 0x4152a3
mov eax, dword [esp + 0x64]
lea ecx, [eax + ebp - 1]
mov dword [esp + 0x78], ecx
jmp 0x4152c6
jne 0x4152bb
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x78]
add ecx, ebp
sub eax, ebp
mov dword [esp + 0x64], ecx
mov dword [esp + 0x78], eax
jmp 0x4152c6
mov eax, dword [esp + 0x78]
sub eax, ebp
inc eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jge 0x4152e0
mov eax, dword [esp + 0x6c]
lea eax, [edi + eax - 1]
mov dword [esp + 0x74], eax
jmp 0x415303
jne 0x4152f8
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x74]
add esi, edi
sub eax, edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x74], eax
jmp 0x415303
mov eax, dword [esp + 0x74]
sub eax, edi
inc eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x78]
sub ecx, eax
add ecx, 2
mov dword [esp + 0x20], edx
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov ebp, dword [esp + 0x34]
add ecx, 2
mov eax, 0x55555556
imul ecx
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x415182