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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov edi, ecx
mov eax, 0x20
lea esi, [ebp + ebp*2]
mov ecx, eax
xor edx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0x1680]
shl esi, 3
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esi + ecx + 8]
mov ecx, dword [0x621804]
lea eax, [esp + 0x24]
add edx, 0x34
push eax
lea eax, [esp + 0x34]
push edx
push eax
add ecx, 8
call fcn.00436260
mov edx, dword [esp + 0x78]
mov ebx, dword [eax + 8]
mov eax, dword [edi + 0x1680]
push 0
shl edx, 4
mov esi, dword [esi + eax + 8]
add ebx, edx
push 0x20
push 0x20
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0
call fcn.004d8f90
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
push edx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
push eax
mov eax, ecx
cdq
and edx, 0x1f
lea ecx, [esp + 0x2c]
add eax, edx
sar eax, 5
push eax
call fcn.004d8f90
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
lea eax, [ecx + eax*2]
mov dword [esp + 0x44], edx
mov esi, dword [esi + eax*4 + 4]
test esi, esi
je 0x431195
mov edx, dword [esi]
lea eax, [esp + 0x3c]
push 0
push eax
mov ecx, esi
call dword [edx + 0x94]
cmp dword [eax], 2
jg 0x431180
mov edx, dword [esi]
lea eax, [esp + 0x3c]
push 0
push eax
mov ecx, esi
call dword [edx + 0x94]
cmp dword [eax + 4], 2
jle 0x431195
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.00419d90
cmp dword [eax + 8], ebx
jl 0x431195
mov dword [esp + 0x10], esi
mov edx, dword [edi + 0x16cc]
mov eax, ebp
mov ecx, dword [edx + 0x2c]
lea edx, [esp + 0x70]
sub eax, ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x1c]
mov esi, dword [ecx]
push edx
push eax
call fcn.0043c610
cmp dword [eax], esi
je 0x431285
mov edx, dword [esp + 0x70]
test edx, edx
jle 0x431285
mov eax, dword [edi + 0x1680]
lea ecx, [edx + edx*2]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx + 8]
mov esi, dword [eax + 0x24]
cmp esi, dword [edi + 0x16e8]
jg 0x431285
mov esi, dword [eax + 0x28]
cmp esi, dword [edi + 0x16f0]
jg 0x431285
mov esi, dword [eax + 0x2c]
cmp esi, dword [edi + 0x16e4]
jl 0x431285
mov esi, dword [eax + 0x30]
cmp esi, dword [edi + 0x16ec]
jl 0x431285
cmp dword [ecx + 0x10], 3
jg 0x431285
mov esi, dword [eax + 0x10]
test esi, esi
je 0x431236
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.00419d90
cmp dword [eax + 8], ebx
jge 0x431232
xor esi, esi
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x431249
cmp eax, esi
jne 0x431285
mov ebp, edx
jmp 0x431195
test esi, esi
je 0x43127e
mov edx, dword [esi]
lea eax, [esp + 0x30]
push 0
push eax
mov ecx, esi
call dword [edx + 0x94]
cmp dword [eax], 2
jg 0x431285
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 0
push eax
mov ecx, esi
call dword [edx + 0x94]
cmp dword [eax + 4], 2
jg 0x431285
mov edx, dword [esp + 0x70]
mov ebp, edx
jmp 0x431195
mov edx, dword [esp + 0x7c]
lea ebx, [ebp - 1]
mov esi, dword [edx]
mov ecx, esi
mov eax, dword [esi + 4]
test eax, eax
je 0x4312aa
cmp dword [eax + 0x10], ebx
jl 0x4312a3
mov ecx, eax
mov eax, dword [eax + 8]
jmp 0x4312a6
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x431297
cmp ecx, esi
mov dword [esp + 0x18], ecx
je 0x4312bd
cmp ebx, dword [ecx + 0x10]
jl 0x4312bd
lea eax, [esp + 0x18]
jmp 0x4312c9
lea ecx, [esp + 0x20]
push ecx
mov ecx, edx
call fcn.005d8060
cmp dword [eax], esi
je 0x4313b1
test ebx, ebx
jle 0x4313b1
mov eax, dword [edi + 0x1680]
lea edx, [ebx + ebx*2]
mov esi, dword [eax + edx*8]
lea ecx, [eax + edx*8]
lea edx, [ebp + ebp*2]
cmp esi, dword [eax + edx*8]
jne 0x4313b1
mov eax, dword [ecx + 8]
mov esi, dword [edi + 0x16e8]
mov edx, dword [eax + 0x24]
cmp edx, esi
jg 0x4313b1
mov edx, dword [eax + 0x28]
mov esi, dword [edi + 0x16f0]
cmp edx, esi
jg 0x4313b1
mov edx, dword [eax + 0x2c]
mov esi, dword [edi + 0x16e4]
cmp edx, esi
jl 0x4313b1
mov edx, dword [eax + 0x30]
mov esi, dword [edi + 0x16ec]
cmp edx, esi
jl 0x4313b1
cmp dword [ecx + 0x10], 3
jg 0x4313b1
mov esi, dword [eax + 0x10]
test esi, esi
je 0x43135e
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call fcn.00419d90
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 8]
cmp edx, ecx
jge 0x43135e
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x431375
cmp eax, esi
jne 0x4313b1
mov ebp, ebx
mov ebx, dword [esp + 0x14]
jmp 0x431195
test esi, esi
je 0x4313a6
mov edx, dword [esi]
lea eax, [esp + 0x54]
push 0
push eax
mov ecx, esi
call dword [edx + 0x94]
cmp dword [eax], 2
jg 0x4313b1
mov edx, dword [esi]
lea eax, [esp + 0x60]
push 0
push eax
mov ecx, esi
call dword [edx + 0x94]
cmp dword [eax + 4], 2
jg 0x4313b1
mov ebp, ebx
mov ebx, dword [esp + 0x14]
jmp 0x431195
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push ecx
push edx
push closesocket
push eax
push ebp
mov ecx, edi
call fcn.004304b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10