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

Disassembly:
sub esp, 0x24
mov eax, 1
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x40], 0
je 0x52bcc7
cmp byte [esi + 0x25], 0
je 0x52bcc7
mov eax, dword [esi + 0x50]
lea edi, [esi + 0x3c]
mov ebp, dword [esi + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
jmp 0x52bad6
mov eax, dword [esp + 0x14]
mov ebx, dword [esi + 0x38]
mov edx, dword [edi]
cmp ebx, edx
jne 0x52bb02
test eax, eax
jne 0x52bb02
mov ecx, dword [esp + 0x38]
push edi
push dword [esi + 0x2c]
mov dword [edi], eax
push dword [esi + 0x40]
mov dword [esi + 0x38], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov edx, dword [edi]
mov ebx, dword [esi + 0x38]
mov dword [esp + 0x14], eax
mov edi, dword [esi + 0x74]
mov ecx, edi
mov eax, dword [esi + 0x78]
sub ecx, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x28]
cmp ecx, eax
jbe 0x52bb1a
lea edi, [eax + ebp]
sub edi, dword [esp + 0x20]
xor ecx, ecx
cmp byte [esi + 0x26], cl
je 0x52bb4c
mov ebp, dword [esi + 0x48]
sub ebp, dword [esi + 0x58]
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x5c]
cmp ecx, eax
jb 0x52bb48
ja 0x52bb3b
cmp edi, ebp
jb 0x52bb48
cmp byte [esi + 0x24], cl
mov eax, 1
mov edi, ebp
cmovne ecx, eax
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x1c]
sub edx, ebx
push eax
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edx
push eax
mov eax, dword [esi + 0x40]
lea ecx, [esi + 0x60]
add eax, ebx
mov ebx, dword [esp + 0x2c]
push eax
lea edx, [edi + ebx]
call fcn.0054f620
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
add dword [esi + 0x38], eax
add dword [esi + 0x50], eax
mov eax, 0
mov dword [esi + 0x34], ecx
adc dword [esi + 0x54], 0
mov ecx, dword [esi + 0x78]
sub ecx, ebx
lea ebx, [esi + 0x58]
mov edx, ecx
add edx, dword [ebx]
mov dword [ebx], edx
adc eax, dword [ebx + 4]
cmp byte [esi + 0x26], 0
mov dword [ebx + 4], eax
je 0x52bbba
cmp eax, dword [esi + 0x4c]
jb 0x52bbba
ja 0x52bbb6
cmp edx, dword [esi + 0x48]
jb 0x52bbba
mov bh, 1
jmp 0x52bbbc
xor bh, bh
cmp dword [esp + 0x20], 0
jne 0x52bbe8
cmp dword [esp + 0x18], 0
jne 0x52bbce
test ecx, ecx
je 0x52bbe8
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x52bbe8
test bh, bh
je 0x52bbe0
cmp eax, 3
jne 0x52bbe8
xor bl, bl
cmp ecx, edi
jb 0x52bc23
jmp 0x52bbea
mov bl, 1
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x70]
sub eax, ebp
mov ecx, dword [esp + 0x3c]
add edx, ebp
push eax
call fcn.00414a90
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x10], ecx
cmp ecx, dword [esi + 0x74]
jne 0x52bc17
xor ecx, ecx
mov dword [esi + 0x78], 0
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x52bcc7
test bl, bl
jne 0x52bc74
mov edx, dword [esp + 0x40]
lea edi, [esi + 0x3c]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x52bad6
mov ecx, dword [esi + 0x50]
sub ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x54]
sbb eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
lea ecx, [esi + 0x58]
push ecx
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0xc]
lea edi, [esi + 0x3c]
test eax, eax
je 0x52bad2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
cmp dword [esp + 0x20], 0
jne 0x52bcc2
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x52bca0
cmp byte [esi + 0x24], 0
je 0x52bcb4
cmp byte [esi + 0x26], 0
je 0x52bcb4
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x58]
jne 0x52bcc2
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x5c]
jmp 0x52bcb2
test bh, bh
je 0x52bcc2
cmp eax, 3
je 0x52bcc2
cmp byte [esi + 0x24], 0
je 0x52bcb4
cmp eax, 4
jne 0x52bcc2
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc