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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
cmp dword [esi + 0x40], ecx
je 0x415cd6
cmp byte [esi + 0x25], cl
je 0x415cd6
mov eax, dword [esi + 0x50]
mov edx, ecx
mov ebx, dword [esi + 0x78]
lea ecx, [esi + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
jmp 0x415af8
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x38]
mov edi, dword [ecx]
mov dword [esp + 0x1c], eax
cmp eax, edi
jne 0x415b32
mov dword [esp + 0x1c], eax
test edx, edx
jne 0x415b32
mov edx, dword [ebp + 8]
xor eax, eax
push ecx
push dword [esi + 0x2c]
mov dword [ecx], eax
push dword [esi + 0x40]
mov dword [esi + 0x38], eax
mov eax, dword [edx]
push edx
call dword [eax + 0xc]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
sub ecx, ebx
add ebx, dword [esi + 0x28]
cmp ecx, dword [esi + 0x28]
mov dword [esp + 0x24], eax
cmovbe ebx, dword [esi + 0x74]
sub ebx, eax
xor eax, eax
mov edx, eax
cmp byte [esi + 0x26], al
je 0x415b7e
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x5c]
xor ecx, ecx
cmp ecx, eax
jb 0x415b7e
mov eax, dword [esp + 0x20]
ja 0x415b73
cmp ebx, eax
jb 0x415b7e
cmp byte [esi + 0x24], cl
mov ebx, eax
push 1
pop eax
cmovne edx, eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x40]
sub edi, ecx
add eax, ecx
mov dword [esp + 0x28], edi
push eax
lea edx, [ebx + edx]
lea ecx, [esi + 0x60]
call fcn.004059e6
mov edi, dword [esp + 0x28]
lea edx, [esi + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
add dword [esi + 0x38], eax
add dword [esi + 0x50], eax
push 0
pop eax
adc dword [esi + 0x54], eax
mov eax, dword [esi + 0x78]
sub eax, dword [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x24], eax
add ecx, dword [edx]
push 0
pop eax
adc eax, dword [edx + 4]
cmp byte [esi + 0x26], 0
mov dword [esi + 0x34], edi
mov dword [edx], ecx
mov dword [edx + 4], eax
je 0x415bf7
cmp eax, dword [esi + 0x4c]
jb 0x415bf7
ja 0x415bf2
cmp ecx, dword [esi + 0x48]
jb 0x415bf7
xor eax, eax
inc eax
jmp 0x415bf9
xor eax, eax
cmp dword [esp + 0x20], 0
mov byte [esp + 0x12], al
jne 0x415c2b
cmp dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x24]
jne 0x415c13
test ecx, ecx
je 0x415c2b
cmp edi, 1
je 0x415c2b
test al, al
je 0x415c21
cmp edi, 3
jne 0x415c2b
xor eax, eax
cmp ecx, ebx
jb 0x415c67
mov bl, al
jmp 0x415c30
xor eax, eax
lea ebx, [eax + 1]
mov eax, dword [esi + 0x78]
sub eax, dword [esp + 0x14]
mov edx, dword [esi + 0x70]
add edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00413c05
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x74]
jne 0x415c5c
xor ecx, ecx
mov dword [esi + 0x78], ecx
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x415cdb
test bl, bl
jne 0x415cac
lea edx, [esi + 0x58]
mov edi, dword [ebp + 0x10]
lea ecx, [esi + 0x3c]
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x415af4
mov ecx, dword [esi + 0x50]
sub ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x54]
sbb eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x38]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0xc]
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x3c]
test eax, eax
je 0x415af8
jmp 0x415cdb
cmp dword [esp + 0x20], 0
jne 0x415cd6
xor eax, eax
inc eax
cmp edi, eax
jne 0x415ce4
cmp byte [esi + 0x24], 0
je 0x415cfb
cmp byte [esi + 0x26], 0
je 0x415cfb
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x58]
jne 0x415cd6
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x5c]
je 0x415cfb
xor esi, esi
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esp + 0x12], 0
je 0x415cd6
cmp edi, 3
je 0x415cd6
cmp byte [esi + 0x24], 0
je 0x415cfb
cmp edi, 4
jne 0x415cd6
mov eax, dword [esp + 0x18]
jmp 0x415cdb