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

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x98]
push edi
mov dword [esp + 0x6c], 1
mov ebx, dword [edi + 4]
mov dword [esp + 0x80], ebx
mov eax, dword [ebx + 0x17f8]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x17fc]
mov dword [esp + 0x44], eax
call fcn.0044d08f
cmp dword [ebx + 0xfc], 0
mov ebp, dword [ebx + 0x11c]
mov dword [esp + 0x34], eax
mov eax, dword [edi]
pop ecx
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0x110]
mov ecx, dword [eax + 8]
mov esi, dword [eax + 0x10]
je 0x45020d
lea eax, [ebx + 0x1c0]
jmp 0x45020f
xor eax, eax
mov dword [esp + 0x34], eax
test ecx, ecx
jne 0x45021d
mov ecx, dword [ebx + 0x124]
test esi, esi
jne 0x450227
mov esi, dword [ebx + 0x128]
test ebp, ebp
je 0x450239
mov esi, dword [ebx + 0x118]
lea esi, [esi + ebp]
shr esi, 1
inc esi
jmp 0x450259
cmp edx, dword [ebx + 0x114]
jne 0x45024d
test edx, edx
je 0x45024d
imul esi, ecx
imul esi, edx
jmp 0x450253
imul esi, ecx
shl esi, 0xc
shr esi, 3
add esi, 0x40
mov eax, dword [esp + 0x4c]
and dword [esp + 0x24], 0
and dword [esp + 0x10], 0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x60], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], esi
test ecx, ecx
jne 0x4502bd
test eax, eax
jne 0x4502bd
mov edx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebp
jmp 0x4502c9
mov edx, eax
mov dword [esp + 0x14], eax
mov ebp, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4504bf
mov eax, dword [esp + 0x4c]
and dword [esp + 0x74], 0
and dword [esp + 0x6c], 0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
mov dword [esp + 0x8c], eax
dec eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x3c], ebp
js 0x4503b5
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 0xa4]
imul edi, eax, 0x18
mov dword [esp + 0x44], edi
mov edx, edi
mov ebx, dword [0x520c20]
cmp dword [edx + ecx], ebx
mov ebp, dword [edx + ecx + 4]
mov ebx, dword [edx + ecx]
jne 0x450337
cmp ebp, dword [0x520c24]
je 0x450369
cmp dword [edx + ecx + 0x10], 0
jbe 0x450369
cmp dword [esp + 0x38], 0
ja 0x45034c
cmp dword [esp + 0x30], 0
jbe 0x45035a
cmp ebp, dword [esp + 0x38]
ja 0x450369
jb 0x45035a
cmp ebx, dword [esp + 0x30]
jae 0x450369
cmp ebp, dword [esp + 0xa8]
jb 0x45036f
ja 0x450369
cmp ebx, esi
jbe 0x45036f
sub edx, 0x18
dec eax
jns 0x45031d
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test eax, eax
js 0x4503b1
imul eax, eax, 0x18
mov ebp, dword [eax + ecx + 8]
add ebp, dword [esp + 0x4c]
mov dword [esp + 0x54], ebp
mov ebp, dword [eax + ecx + 0xc]
adc ebp, dword [esp + 0x40]
mov dword [esp + 0x5c], ebp
mov ebp, dword [eax + ecx]
mov eax, dword [eax + ecx + 4]
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp dword [ecx], eax
jle 0x45042f
mov edx, dword [ecx + 4]
xor ecx, ecx
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0xa4]
mov ebx, dword [ecx + edx]
mov edi, dword [ecx + edx + 4]
cmp ebx, dword [0x520c20]
jne 0x4503e5
cmp edi, dword [0x520c24]
je 0x450417
cmp dword [ecx + edx + 0x10], 0
jbe 0x450417
cmp dword [esp + 0x38], 0
ja 0x4503fa
cmp dword [esp + 0x30], 0
jbe 0x450408
cmp edi, dword [esp + 0x38]
ja 0x450417
jb 0x450408
cmp ebx, dword [esp + 0x30]
jae 0x450417
cmp edi, dword [esp + 0xa8]
ja 0x45041f
jb 0x450417
cmp ebx, esi
ja 0x45041f
inc eax
add ecx, 0x18
cmp eax, ebp
jl 0x4503ce
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp eax, dword [esp + 0x8c]
jge 0x45046c
imul ecx, eax, 0x18
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov edi, dword [ecx + eax + 8]
add edi, dword [esp + 0x4c]
mov dword [esp + 0x58], edi
mov edi, dword [ecx + eax + 0xc]
adc edi, dword [esp + 0x40]
mov dword [esp + 0x60], edi
mov edi, dword [ecx + eax]
mov eax, dword [ecx + eax + 4]
mov dword [esp + 0x84], edi
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x60]
cmp ecx, dword [esp + 0x5c]
jb 0x4504bf
mov eax, dword [esp + 0x58]
ja 0x450482
cmp eax, dword [esp + 0x54]
jb 0x4504bf
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebp
jmp 0x4504c3
mov eax, dword [esp + 0x10]
cmp edx, dword [esp + 0x24]
jne 0x4504db
cmp ebp, eax
jne 0x4504db
add edx, 1
mov dword [esp + 0x14], edx
adc ebp, 0
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0xa8]
mov dword [ebx + 0x1800], ecx
mov dword [ebx + 0x1804], edi
mov edi, dword [esp + 0x98]
cmp eax, ebp
ja 0x4507cb
mov ebx, dword [esp + 0x24]
jb 0x450512
cmp ebx, edx
jae 0x4507cb
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x2c]
ja 0x4507cb
jb 0x450530
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x28]
ja 0x4507cb
mov eax, ecx
mov ecx, dword [esp + 0xa8]
sub eax, ebx
mov dword [esp + 0x84], eax
sbb ecx, dword [esp + 0x10]
and dword [esp + 0x6c], 0
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [esp + 0x88], ecx
sub edx, ebx
fild qword [esp + 0x84]
mov dword [esp + 0x70], eax
mov ecx, ebp
sbb ecx, dword [esp + 0x10]
mov ebx, closesocket
and dword [esp + 0x60], 0
mov eax, ecx
fild qword [esp + 0x6c]
mov dword [esp + 0x74], edx
and eax, ebx
mov edx, closesocket
mov dword [esp + 0x64], eax
and ecx, edx
mov dword [esp + 0x78], ecx
fchs
faddp st(1)
fstp qword [esp + 0x44]
fld qword [esp + 0x44]
fild qword [esp + 0x74]
fild qword [esp + 0x60]
fchs
faddp st(1)
fstp qword [esp + 0x44]
fdiv qword [esp + 0x44]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
sbb ecx, dword [esp + 0x20]
and dword [esp + 0x7c], 0
mov dword [esp + 0x8c], eax
mov eax, ecx
and ecx, edx
and eax, ebx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x80], eax
fild qword [esp + 0x8c]
fild qword [esp + 0x7c]
fchs
faddp st(1)
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
call fcn.00417216
mov ebx, eax
mov ebp, edx
sub ebx, esi
sbb ebp, 0
add ebx, dword [esp + 0x1c]
adc ebp, dword [esp + 0x20]
cmp ebp, dword [esp + 0x2c]
jl 0x450630
jg 0x450622
cmp ebx, dword [esp + 0x28]
jb 0x450630
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
sub ebx, 1
sbb ebp, 0
cmp ebp, dword [esp + 0x20]
jg 0x450646
jl 0x45063e
cmp ebx, dword [esp + 0x1c]
jae 0x450646
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov eax, dword [edi + 4]
push dword [eax + 0x30]
push ebp
push ebx
push edi
call dword [eax + 8]
add esp, 0x10
test eax, eax
jne 0x4507cb
push edi
call fcn.0044cfa2
pop ecx
test eax, eax
je 0x4507d3
mov eax, dword [edi + 4]
push edi
and dword [eax + 0x1808], 0
call fcn.0044d248
pop ecx
test eax, eax
je 0x4507cb
mov eax, dword [edi]
cmp dword [eax], 7
je 0x4507cb
mov eax, dword [edi + 4]
cmp dword [eax + 0xe30], 0
je 0x4507c6
cmp dword [eax + 0xf0], 0
mov edx, dword [eax + 0xec0]
mov ecx, dword [eax + 0xec4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
jne 0x4506c6
cmp dword [eax + 0xf4], 0
je 0x4506ec
mov ecx, dword [eax + 0xea8]
add ecx, edx
push 0
pop edx
adc edx, dword [eax + 0xec4]
cmp edx, dword [esp + 0x18]
jb 0x45070f
ja 0x4506e5
cmp ecx, dword [esp + 0x14]
jb 0x45070f
cmp dword [esp + 0x68], 0
jne 0x45070f
cmp ebx, dword [esp + 0x1c]
jne 0x4506fc
cmp ebp, dword [esp + 0x20]
je 0x4507cb
test esi, esi
je 0x450707
add esi, esi
jmp 0x4507a2
push 0x10
pop esi
jmp 0x4507a2
and dword [esp + 0x68], 0
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x10]
jb 0x4507cb
mov esi, dword [esp + 0x3c]
ja 0x450732
cmp esi, dword [esp + 0x24]
jb 0x4507cb
cmp dword [esp + 0xa8], eax
ja 0x450769
jb 0x450746
cmp dword [esp + 0xa4], esi
jae 0x450769
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ecx
push eax
push edi
mov dword [esp + 0x20], edx
call fcn.0044d016
pop ecx
pop ecx
test eax, eax
je 0x4507cb
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
jmp 0x45078a
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
push edi
mov dword [esp + 0x18], edx
call fcn.0044d016
pop ecx
pop ecx
test eax, eax
je 0x4507cb
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub ecx, ebx
push 0
sbb eax, ebp
shld eax, ecx, 1
push 3
push eax
add ecx, ecx
push ecx
call fcn.00417430
lea esi, [eax + 0x10]
mov ebp, dword [esp + 0x18]
cmp dword [esp + 0x10], ebp
ja 0x4507cb
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
jb 0x4507ba
cmp ebx, edx
jae 0x4507cb
mov ecx, dword [esp + 0xa4]
jmp 0x450512
xor eax, eax
inc eax
jmp 0x4507d5
mov eax, dword [edi]
mov dword [eax], 6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret