Function at 0x41549e
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 edx, edx
push edi
mov dword [esp + 0x2c], edx
cmp dword [esi + 0x40], edx
je 0x4156d8
cmp byte [esi + 0x25], dl
je 0x4156d8
mov eax, dword [esi + 0x50]
lea edi, [esi + 0x3c]
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x34], eax
mov eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x4154e8
mov eax, dword [esp + 0x18]
mov ebx, dword [esi + 0x38]
mov edx, dword [edi]
cmp ebx, edx
jne 0x415513
test eax, eax
jne 0x415513
mov ecx, dword [ebp + 8]
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 + 0x18], eax
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x74]
mov ecx, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
sub ecx, eax
cmp ecx, dword [esi + 0x28]
jbe 0x41552f
mov edi, dword [esi + 0x28]
add edi, eax
sub edi, dword [esp + 0x1c]
xor eax, eax
mov ecx, eax
cmp byte [esi + 0x26], al
je 0x415567
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]
cmp dword [esp + 0x2c], eax
jb 0x415567
mov eax, dword [esp + 0x20]
ja 0x41555c
cmp edi, eax
jb 0x415567
cmp byte [esi + 0x24], cl
mov edi, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [esp + 0x24]
sub edx, ebx
push eax
push ecx
mov dword [esp + 0x28], edx
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ecx, [esi + 0x60]
push eax
mov eax, dword [esi + 0x40]
add eax, ebx
push eax
lea edx, [edi + edx]
call fcn.00404be3
mov edx, dword [esi + 0x78]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
add dword [esi + 0x38], eax
add dword [esi + 0x50], eax
push 0
pop eax
adc dword [esi + 0x54], eax
sub edx, dword [esp + 0x1c]
mov ecx, edx
mov dword [esi + 0x34], ebx
add ecx, dword [esi + 0x58]
mov dword [esi + 0x58], ecx
adc eax, dword [esi + 0x5c]
cmp byte [esi + 0x26], 0
mov dword [esi + 0x5c], eax
je 0x4155da
cmp eax, dword [esi + 0x4c]
jb 0x4155da
ja 0x4155cf
cmp ecx, dword [esi + 0x48]
jb 0x4155da
xor eax, eax
inc eax
xor ecx, ecx
mov byte [esp + 0x13], al
jmp 0x4155e2
xor ecx, ecx
mov al, cl
mov byte [esp + 0x13], cl
cmp dword [esp + 0x28], 0
jne 0x41560c
cmp dword [esp + 0x20], 0
jne 0x4155f4
test edx, edx
je 0x41560c
cmp ebx, 1
je 0x41560c
test al, al
je 0x415602
cmp ebx, 3
jne 0x41560c
mov byte [esp + 0x12], cl
cmp edx, edi
jb 0x41564d
jmp 0x415613
xor eax, eax
inc eax
mov byte [esp + 0x12], al
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.004134a6
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x74]
jne 0x41563f
xor ecx, ecx
mov dword [esi + 0x78], ecx
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x4156dd
cmp byte [esp + 0x12], al
jne 0x415691
mov edx, dword [ebp + 0x10]
lea edi, [esi + 0x3c]
mov eax, dword [esp + 0x18]
test edx, edx
je 0x4154e8
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, [esi + 0x58]
push ecx
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x3c]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0xc]
lea edi, [esi + 0x3c]
test eax, eax
je 0x4154e4
jmp 0x4156dd
cmp dword [esp + 0x28], 0
jne 0x4156d8
xor eax, eax
inc eax
cmp ebx, eax
jne 0x4156bb
cmp byte [esi + 0x24], 0
je 0x4156d2
cmp byte [esi + 0x26], 0
je 0x4156d2
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x58]
jne 0x4156d8
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x5c]
jmp 0x4156d0
cmp byte [esp + 0x13], 0
je 0x4156d8
cmp ebx, 3
je 0x4156d8
cmp byte [esi + 0x24], 0
je 0x4156d2
cmp ebx, 4
jne 0x4156d8
mov eax, dword [esp + 0x18]
jmp 0x4156dd
xor ebx, ebx
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc