Function at 0x415b70
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 0x415d94
cmp byte [esi + 0x25], cl
je 0x415d94
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 0x415bb6
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x38]
mov edi, dword [ecx]
mov dword [esp + 0x1c], eax
cmp eax, edi
jne 0x415bf0
mov dword [esp + 0x1c], eax
test edx, edx
jne 0x415bf0
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 0x415c3c
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 0x415c3c
mov eax, dword [esp + 0x20]
ja 0x415c31
cmp ebx, eax
jb 0x415c3c
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.00405a95
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 0x415cb5
cmp eax, dword [esi + 0x4c]
jb 0x415cb5
ja 0x415cb0
cmp ecx, dword [esi + 0x48]
jb 0x415cb5
xor eax, eax
inc eax
jmp 0x415cb7
xor eax, eax
cmp dword [esp + 0x20], 0
mov byte [esp + 0x12], al
jne 0x415ce9
cmp dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x24]
jne 0x415cd1
test ecx, ecx
je 0x415ce9
cmp edi, 1
je 0x415ce9
test al, al
je 0x415cdf
cmp edi, 3
jne 0x415ce9
xor eax, eax
cmp ecx, ebx
jb 0x415d25
mov bl, al
jmp 0x415cee
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.00413ced
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x74]
jne 0x415d1a
xor ecx, ecx
mov dword [esi + 0x78], ecx
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x415d99
test bl, bl
jne 0x415d6a
lea edx, [esi + 0x58]
mov edi, dword [ebp + 0x10]
lea ecx, [esi + 0x3c]
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x415bb2
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 0x415bb6
jmp 0x415d99
cmp dword [esp + 0x20], 0
jne 0x415d94
xor eax, eax
inc eax
cmp edi, eax
jne 0x415da2
cmp byte [esi + 0x24], 0
je 0x415db9
cmp byte [esi + 0x26], 0
je 0x415db9
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x58]
jne 0x415d94
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x5c]
je 0x415db9
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 0x415d94
cmp edi, 3
je 0x415d94
cmp byte [esi + 0x24], 0
je 0x415db9
cmp edi, 4
jne 0x415d94
mov eax, dword [esp + 0x18]
jmp 0x415d99