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

Disassembly:
sub esp, 0x54
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
jne 0x524395
xor eax, eax
pop esi
add esp, 0x54
ret 0x14
mov eax, dword [esi + 0x14]
push ebx
push ebp
push edi
sub eax, 0
je 0x524401
sub eax, 1
je 0x5243f4
sub eax, 1
jne 0x5246e3
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x70], ebp
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [esi + 0x54]
mov ebx, dword [esi + 0x50]
call dword [eax + 0xa8]
cmp byte [esp + 0x78], 0
lea ecx, [ebp - 1]
push dword [esp + 0x74]
mov edx, dword [eax]
je 0x52467f
test ebp, ebp
cmove ecx, ebp
push ecx
push edi
push ebx
push 0x73bc6c
mov ecx, eax
call dword [edx + 0x90]
jmp 0x524694
mov eax, dword [esp + 0x70]
mov dword [esp + 0x70], eax
jmp 0x52448e
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x70]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x54], eax
mov dword [esp + 0x70], ebp
mov edi, dword [esi + 0x54]
test edi, edi
jne 0x524431
test ebp, ebp
je 0x5246e3
test edi, edi
je 0x5243b6
cmp dword [esi + 0x4c], 0
je 0x5243b6
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x3c]
call fcn.00524f40
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x524452
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
dec edx
and edx, dword [ecx + 8]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
cmp eax, dword [esi + 0x34]
jne 0x5243b6
lea ecx, [esi + 0x3c]
call fcn.00525050
xor ecx, ecx
add edi, dword [esi + 0x20]
adc ecx, dword [esi + 0x24]
cmp ecx, dword [eax + 0xc]
jb 0x5243b6
ja 0x52448e
cmp edi, dword [eax + 8]
jbe 0x5243b6
cmp byte [esp + 0x78], 0
lea ebp, [esi + 0x3c]
mov ecx, ebp
je 0x5244fd
lea eax, [esp + 0x1c]
push eax
call fcn.00524f40
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x5244ae
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x24]
jb 0x5244d5
ja 0x5244cd
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 0x20]
jbe 0x5244d5
mov ebx, dword [ebx + 8]
sub ebx, dword [esi + 0x20]
jmp 0x5244d7
xor ebx, ebx
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [esi + 0x50]
call dword [eax + 0xa8]
push dword [esp + 0x74]
mov ecx, eax
push 0
mov edx, dword [eax]
push ebx
push edi
push 0x73bc6c
call dword [edx + 0x90]
jmp 0x52455e
lea eax, [esp + 0x28]
push eax
call fcn.00524f40
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x524511
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x24]
jb 0x524538
ja 0x524530
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 0x20]
jbe 0x524538
mov ebx, dword [ebx + 8]
sub ebx, dword [esi + 0x20]
jmp 0x52453a
xor ebx, ebx
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [esi + 0x50]
call dword [eax + 0xa8]
push dword [esp + 0x74]
mov ecx, eax
push 0
mov edx, dword [eax]
push ebx
push edi
push 0x73bc6c
call dword [edx + 0x8c]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x14], ecx
test eax, eax
jne 0x5246ef
sub dword [esi + 0x54], ebx
mov ecx, ebp
add dword [esi + 0x50], ebx
add dword [esi + 0x20], ebx
mov edi, dword [esi + 0x54]
adc dword [esi + 0x24], eax
add dword [esi + 0x28], ebx
adc dword [esi + 0x2c], eax
lea eax, [esp + 0x34]
push eax
call fcn.00524f40
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x52459b
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
call fcn.00524f40
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x5245be
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x10]
add edx, dword [ebx + 8]
mov ecx, dword [eax + 0x14]
adc ecx, dword [ebx + 0xc]
xor eax, eax
mov ebx, edi
add ebx, dword [esi + 0x20]
adc eax, dword [esi + 0x24]
cmp eax, ecx
ja 0x5245eb
jb 0x524662
cmp ebx, edx
jb 0x524662
lea eax, [esp + 0x4c]
mov ecx, ebp
push eax
call fcn.00524f40
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x524601
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov ebx, dword [eax + ecx*4]
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call fcn.00524f40
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x524624
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0x10]
add edi, dword [ebx + 8]
mov eax, dword [eax + 0x14]
adc eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x24]
jb 0x52464e
ja 0x524649
cmp edi, dword [esi + 0x20]
jbe 0x52464e
sub edi, dword [esi + 0x20]
jmp 0x524650
xor edi, edi
add dword [ebp + 0x10], 0xffffffff
jne 0x52465f
mov dword [ebp + 0xc], 0
jmp 0x524662
inc dword [ebp + 0xc]
add dword [esi + 0x50], edi
sub dword [esi + 0x54], edi
add dword [esi + 0x20], edi
mov ebp, dword [esp + 0x70]
adc dword [esi + 0x24], 0
add dword [esi + 0x28], edi
adc dword [esi + 0x2c], 0
jmp 0x52441e
test ebp, ebp
cmove ecx, ebp
push ecx
push edi
push ebx
push 0x73bc6c
mov ecx, eax
call dword [edx + 0x8c]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 2
mov dword [esi + 0x14], ecx
test eax, eax
jne 0x524742
mov eax, dword [esi + 0x54]
add dword [esi + 0x20], eax
mov dword [esi + 0x54], 0
adc dword [esi + 0x24], 0
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], 0
test ebp, ebp
je 0x52441e
inc dword [esi + 0x30]
inc dword [esi + 0x34]
xor ebp, ebp
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
jmp 0x52441a
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x54
ret 0x14
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0x3c]
call fcn.00524f40
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x524706
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp eax, edi
jb 0x524733
ja 0x524729
cmp ecx, edx
jbe 0x524733
sub ecx, edx
sbb eax, edi
mov dword [esp + 0x14], eax
jmp 0x524745
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x10]
jmp 0x524745
mov ecx, dword [esi + 0x54]
sub ecx, dword [esi + 0x10]
mov eax, 1
pop edi
pop ebp
cmp ecx, eax
pop ebx
cmova eax, ecx
pop esi
add esp, 0x54
ret 0x14