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

Disassembly:
push ebp
xor ecx, ecx
push edi
push esi
push ebx
sub esp, 0x5c
xor ebx, ebx
movzx edx, byte [esp + 0x98]
mov dword [esp + 0x58], ebx
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x50], ecx
mov esi, dword [esp + 0x70]
mov byte [esp + 0x4b], dl
mov byte [ebp], 0
mov eax, dword [0x41cb54]
mov edx, dword [esp + 0x88]
mov dword [edx], eax
jmp 0x412ede
mov dword [esp + 4], esi
mov dword [esp], edx
call 0x418840
xor eax, eax
test al, al
jne 0x412f68
mov dword [esp], esi
call fcn.00412020
mov edi, dword [esi + 4]
dec edi
test edi, edi
mov dword [esi + 4], edi
js 0x412fb1
mov eax, dword [esi]
movzx ebx, byte [eax]
inc eax
mov dword [esi], eax
cmp ebx, 0xffffffff
mov eax, 1
je 0x412f1c
mov dword [esp + 4], esi
mov dword [esp], ebx
call 0x418840
cmp ebx, 0xa
sete cl
cmp ebx, 0xd
sete al
or eax, ecx
and eax, 1
test al, al
je 0x412f68
test byte [esi + 0xc], 0x10
mov eax, 1
jne 0x412ece
mov ebx, dword [esi + 4]
dec ebx
test ebx, ebx
mov dword [esi + 4], ebx
js 0x412fc0
mov edi, dword [esi]
movzx edx, byte [edi]
inc edi
mov dword [esi], edi
cmp edx, 0xffffffff
jne 0x412ec0
mov dword [esp + 4], esi
mov dword [esp], 0xffffffff
call 0x418840
mov eax, 1
test al, al
je 0x412ed6
test byte [esi + 0xc], 0x10
mov eax, 1
jne 0x412fa1
mov edx, dword [esi + 4]
dec edx
test edx, edx
mov dword [esi + 4], edx
js 0x41324d
mov eax, dword [esi]
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
cmp edx, 0xffffffff
je 0x413224
mov dword [esp + 4], esi
mov dword [esp], edx
call 0x418840
xor eax, eax
test al, al
je 0x412fcf
mov byte [ebp], 1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call 0x418870
mov ebx, eax
jmp 0x412ef5
mov dword [esp], esi
call 0x418870
mov edx, eax
jmp 0x412f42
mov dword [esp + 8], esi
lea edi, [esp + 0x58]
lea ebx, [esp + 0x57]
mov dword [esp + 4], edi
jmp 0x412fe9
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.004123e0
cmp byte [esp + 0x57], 0x28
jne 0x412fe1
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x41300d
mov edx, dword [esp + 0x8c]
mov byte [edx], 1
movzx edx, byte [esp + 0x4b]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x9c]
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x94]
xor ebx, ebx
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.00412530
jmp 0x4130ad
mov dword [esp + 4], esi
mov dword [esp], edx
call 0x418840
xor eax, eax
test al, al
jne 0x413140
mov dword [esp], esi
call fcn.00412020
mov edi, dword [esi + 4]
dec edi
test edi, edi
mov dword [esi + 4], edi
js 0x413215
mov ebp, dword [esi]
movzx ebx, byte [ebp]
inc ebp
mov dword [esi], ebp
cmp ebx, 0xffffffff
mov eax, 1
je 0x4130f4
mov dword [esp + 4], esi
mov dword [esp], ebx
call 0x418840
cmp ebx, 0xa
sete cl
cmp ebx, 0xd
sete al
or eax, ecx
and eax, 1
test al, al
je 0x413140
test byte [esi + 0xc], 0x10
mov eax, 1
jne 0x4130a5
mov ebx, dword [esi + 4]
dec ebx
test ebx, ebx
mov dword [esi + 4], ebx
js 0x41323e
mov eax, dword [esi]
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
cmp edx, 0xffffffff
jne 0x413097
mov dword [esp + 4], esi
mov dword [esp], 0xffffffff
call 0x418840
mov eax, 1
test al, al
je 0x4130ad
mov esi, dword [esp + 0x80]
test esi, esi
je 0x413155
mov edx, dword [esp + 0x80]
mov byte [edx], 0
mov edi, dword [esp + 0x58]
test edi, edi
je 0x412fa9
mov dword [esp], 0x41ae8c
call 0x418758
mov dword [esp], 0x41a58d
call 0x418758
mov ebx, dword [0x41d154]
add ebx, 0x20
mov dword [esp], ebx
call 0x4187b0
mov ecx, dword [0x41d154]
mov ebp, dword [ecx + 4]
dec ebp
mov dword [ecx + 4], ebp
test ebp, ebp
js 0x41325c
mov eax, dword [0x41d154]
inc dword [eax]
cmp byte [0x41c010], 0
je 0x413209
movsx edx, word [0x41cad6]
mov eax, dword [0x41ca64]
movsx ebp, word [0x41cad4]
movzx esi, word [0x41cadc]
mov dword [esp], eax
imul ebp, edx
mov dword [esp + 4], esi
call 0x418898
movzx edi, word [0x41cadc]
sub esp, 8
mov edx, dword [0x41ca64]
mov dword [esp + 8], ebp
lea ebx, [esp + 0x4c]
xor ecx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp], edx
call 0x4188a0
sub esp, 0x14
mov dword [esp], 0xffffffff
call 0x4187d8
mov dword [esp], esi
call 0x418870
mov ebx, eax
jmp 0x4130cd
mov dword [esp + 4], esi
mov dword [esp], 0xffffffff
call 0x418840
mov eax, 1
jmp 0x412fa1
mov dword [esp], esi
call 0x418870
mov edx, eax
jmp 0x41311a
mov dword [esp], esi
call 0x418870
mov edx, eax
jmp 0x412f8a
mov esi, dword [0x41d154]
mov dword [esp], esi
call 0x418870
jmp 0x4131a6