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

Disassembly:
push ebp
push ebx
push edi
push esi
mov edx, 0x1e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x10006551
mov ebx, dword [esp + 0x8c]
and ebx, ebx
jg 0x1000657f
xor eax, eax
jmp 0x10006a20
push dword [esp + 0x8c]
pop eax
mov dword [esp], eax
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp]
add ebx, dword [ebp + 0x3c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 4]
add ebx, dword [ebp + 0x78]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 4]
add ebx, dword [ebp + 0x7c]
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 4]
push ebp
pop ebp
lea eax, [ebp + 0x78]
push eax
pop eax
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 8]
add ebx, dword [ebp]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0xc]
mov ebx, dword [ebp + 0x24]
and ebx, ebx
jle 0x100065f5
mov ebp, dword [esp + 0xc]
mov ebx, dword [ebp + 0x20]
and ebx, ebx
jle 0x100065f5
jmp 0x100065fc
mov eax, 1
jmp 0x100065fe
xor eax, eax
and eax, eax
je 0x10006618
lea edx, str.chapter
lea ecx, [esp + 0x58]
call fcn.10032008
xor eax, eax
jmp 0x10006a20
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0xc]
add ebx, dword [ebp + 0x1c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0xc]
add ebx, dword [ebp + 0x24]
mov dword [esp + 0x14], ebx
lea edx, str.sail
lea ecx, [esp + 0x5c]
call fcn.10032008
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0xc]
add ebx, dword [ebp + 0x20]
mov dword [esp + 0x18], ebx
lea edx, str.wife
lea ecx, [esp + 0x60]
call fcn.10032008
mov ebp, dword [esp + 0xc]
mov ebx, dword [ebp + 0x18]
cmp ebx, 0x1000
jg 0x10006688
mov ebp, dword [esp + 0xc]
mov ebx, dword [ebp + 0x18]
and ebx, ebx
jle 0x10006688
jmp 0x1000668f
mov eax, 1
jmp 0x10006691
xor eax, eax
and eax, eax
je 0x1000669c
xor eax, eax
jmp 0x10006a20
lea edx, str.gorilla
lea ecx, [esp + 0x64]
call fcn.10032008
mov dword [esp + 0x1c], 0
jmp 0x100066b5
mov ebp, dword [esp + 0xc]
mov ebx, dword [ebp + 0x18]
dec ebx
cmp ebx, dword [esp + 0x1c]
jl 0x1000691d
push dword [0x1003fa08]
push dword [0x1003fa08]
push 0x18
push 0xffffffff
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
shl esi, 2
add edi, esi
push edi
pop eax
call fcn.10032190
add ebx, eax
push ebx
call fcn.10039430
lea eax, [esp + 0x4c]
push eax
call fcn.10039880
mov edx, dword [esp + 0x48]
xor ecx, ecx
call fcn.100321d0
jne 0x10006913
push dword [esp + 0x48]
call fcn.10008a69
mov dword [esp + 0x44], eax
mov ebx, dword [esp + 0x90]
cmp ebx, dword [esp + 0x44]
jne 0x10006913
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add eax, eax
add esi, eax
push esi
pop eax
call fcn.100321b0
mov esi, eax
shl esi, 2
add edi, esi
push edi
pop eax
call fcn.10032190
add ebx, eax
mov dword [esp + 0x20], ebx
push dword [esp + 0x20]
call fcn.10039550
push eax
pop eax
mov byte [esp + 0x4c], al
mov ebx, dword [esp + 0x20]
inc ebx
push ebx
call fcn.10039550
push eax
pop eax
mov byte [esp + 0x50], al
movzx ebx, byte [esp + 0x4c]
mov eax, 0xcc
cmp ebx, eax
je 0x100067fc
movzx ebx, byte [esp + 0x4c]
mov eax, 0xcd
cmp ebx, eax
jne 0x100067bc
movzx ebx, byte [esp + 0x50]
mov eax, 3
cmp ebx, eax
jne 0x100067bc
mov eax, 1
jmp 0x100067be
xor eax, eax
and eax, eax
jne 0x100067ed
movzx ebx, byte [esp + 0x4c]
mov eax, 0xf
cmp ebx, eax
jne 0x100067e5
movzx ebx, byte [esp + 0x50]
mov eax, 0xb
cmp ebx, eax
jne 0x100067e5
mov eax, 1
jmp 0x100067e7
xor eax, eax
and eax, eax
jne 0x100067ed
jmp 0x100067f4
mov eax, 1
jmp 0x100067f6
xor eax, eax
and eax, eax
jne 0x100067fc
jmp 0x10006803
mov eax, 1
jmp 0x10006805
xor eax, eax
and eax, eax
je 0x10006816
mov dword [esp + 0x20], 0
jmp 0x1000691d
mov ebx, dword [esp + 0x20]
cmp ebx, dword [esp + 0x24]
jl 0x10006831
mov ebx, dword [esp + 0x20]
cmp ebx, dword [esp + 0x28]
jg 0x10006831
mov eax, 1
jmp 0x10006833
xor eax, eax
and eax, eax
je 0x10006911
push dword [0x1003fa08]
push dword [0x1003fa08]
push 0x18
push 0xffffffff
push dword [esp + 0x30]
call fcn.10039430
lea eax, [esp + 0x34]
push eax
call fcn.10039880
mov dword [esp + 0x20], 0
push dword [esp + 0x30]
call fcn.1000c2e6
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x34]
and ebx, ebx
jle 0x10006911
push dword [0x1003fa08]
push dword [0x1003fa08]
push dword [esp + 0x3c]
push 0
push dword [esp + 0x40]
call fcn.100327c0
lea eax, [esp + 0x40]
push eax
call fcn.10039880
push dword [0x1003fa08]
push dword [0x1003fa08]
mov ebx, dword [esp + 0x3c]
add ebx, 2
push ebx
push dword [esp + 0x3c]
call fcn.10032850
lea eax, [esp + 0x3c]
push eax
call fcn.10039880
lea edx, [0x1003c03e]
lea ecx, [esp + 0x30]
call fcn.10032008
push dword [esp + 0x3c]
call fcn.100084b4
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x40]
and ebx, ebx
jle 0x10006911
push dword [esp + 0x38]
call fcn.10008a69
push eax
push dword [esp + 0x44]
call fcn.10006548
mov dword [esp + 0x20], eax
jmp 0x1000691d
jmp 0x1000691d
inc dword [esp + 0x1c]
jno 0x100066b5
mov word [esp + 0x68], 5
movzx ebx, word [esp + 0x68]
mov eax, 1
cmp ebx, eax
jl 0x10006941
movzx ebx, word [esp + 0x68]
dec ebx
push ebx
pop eax
mov word [esp + 0x6c], ax
jmp 0x1000694e
movzx ebx, word [esp + 0x68]
inc ebx
push ebx
pop eax
mov word [esp + 0x6c], ax
movzx ebx, word [esp + 0x6c]
push ebx
mov ebx, 0xa
cmp ebx, dword [esp]
jne 0x10006968
add esp, 4
jmp 0x10006a20
mov ebx, 4
cmp ebx, dword [esp]
jne 0x10006980
movzx eax, word [esp + 0x70]
push eax
pop eax
mov word [esp + 0x6c], ax
jmp 0x10006997
mov ebx, 4
cmp ebx, dword [esp]
jne 0x10006997
movzx ebx, word [esp + 0x70]
inc ebx
push ebx
pop eax
mov word [esp + 0x6c], ax
pop eax
mov word [esp + 0x70], 5
movzx ebx, word [esp + 0x70]
mov eax, 4
cmp ebx, eax
jl 0x100069bc
movzx ebx, word [esp + 0x70]
dec ebx
push ebx
pop eax
mov word [esp + 0x74], ax
jmp 0x100069c9
movzx ebx, word [esp + 0x70]
inc ebx
push ebx
pop eax
mov word [esp + 0x74], ax
movzx ebx, word [esp + 0x74]
push ebx
mov ebx, 0x11
cmp ebx, dword [esp]
jne 0x100069e0
add esp, 4
jmp 0x10006a20
mov ebx, 6
cmp ebx, dword [esp]
jne 0x100069f8
movzx eax, word [esp + 0x78]
push eax
pop eax
mov word [esp + 0x74], ax
jmp 0x10006a0f
mov ebx, 5
cmp ebx, dword [esp]
jne 0x10006a0f
movzx ebx, word [esp + 0x78]
inc ebx
push ebx
pop eax
mov word [esp + 0x74], ax
pop eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
jmp 0x10006a20
push dword [esp + 0x54]
call fcn.100397f0
push dword [esp + 0x3c]
call fcn.100397f0
push dword [esp + 0x38]
call fcn.100397f0
push dword [esp + 0x58]
call fcn.100397f0
push dword [esp + 0x30]
call fcn.100397f0
push dword [esp + 0x48]
call fcn.100397f0
push dword [esp + 0x60]
call fcn.100397f0
push dword [esp + 0x5c]
call fcn.100397f0
push dword [esp + 0x64]
call fcn.100397f0
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret 8