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

Disassembly:
sub esp, 0x17c
mov dword [esp + 0x10], 0
push ebx
push esi
mov ebx, dword [esp + 0x188]
push edi
push ebp
push 0x13
mov esi, dword [ebx + 0x14]
lea ebp, [esp + 0x24]
push esi
call fcn.004b3a90
mov byte [esp + 0x19], al
add esp, 8
push 0xe
push esi
call fcn.004b3a90
mov byte [esp + 0x1a], al
add esp, 8
push 5
push esi
call fcn.004b3a90
mov byte [esp + 0x1b], al
add esp, 8
push 0x16
push esi
call fcn.004b3a90
lea edi, [esp + 0x2c]
mov byte [esp + 0x20], al
add esp, 8
xor eax, eax
mov dword [ebx + 0x48], 0
mov ecx, 0x1a
push eax
mov dword [ebx + 0x3c], 0
rep stosd dword es:[edi], eax
mov word [esp + 0x28], 0x68
mov word [esp + 0x2a], 0x222
push 1
push 4
push 0x12
push esi
call fcn.004b3930
add esp, 0x10
push eax
push esi
call fcn.004b2600
mov dword [esp + 0x38], eax
add esp, 0xc
push 0
push 6
push esi
call fcn.004b2600
mov dword [esp + 0x3c], eax
add esp, 0xc
push 0
push 6
push esi
call fcn.004b2600
add esp, 0xc
cmp byte [esp + 0x11], 0
mov dword [esp + 0x34], eax
je 0x4097db
push 0
push 1
push 4
push 0x13
push esi
call fcn.004b3930
add esp, 0x10
push eax
push esi
call fcn.004b2600
mov dword [esp + 0x38], eax
add esp, 0xc
cmp byte [esp + 0x12], 0
je 0x409801
push 0
push 1
push 4
push 0xe
push esi
call fcn.004b3930
add esp, 0x10
push eax
push esi
call fcn.004b2600
mov dword [esp + 0x3c], eax
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x409819
push 0
push 5
push esi
call fcn.004b2600
mov dword [esp + 0x40], eax
add esp, 0xc
cmp byte [esp + 0x18], 1
sbb eax, eax
mov edx, 0xb
add eax, edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x6c], edx
test esi, esi
je 0x40984a
mov eax, dword [esi + 0xac]
test eax, eax
je 0x40984a
mov eax, dword [eax + 0x28]
jmp 0x40984c
xor eax, eax
and eax, 1
cmp eax, 1
mov eax, 0xb
adc eax, 0xffffffff
cmp byte [esp + 0x12], 0
mov dword [esp + 0x70], eax
jne 0x40986f
mov dword [esp + 0x50], 0xa
jmp 0x409896
test esi, esi
je 0x409882
mov eax, dword [esi + 0xac]
test eax, eax
je 0x409882
mov eax, dword [eax + 0x28]
jmp 0x409884
xor eax, eax
and eax, 4
cmp eax, 1
mov eax, 0xb
adc eax, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], 0xfffffffe
test esi, esi
je 0x4098b1
mov eax, dword [esi + 0xac]
test eax, eax
je 0x4098b1
mov eax, dword [eax + 0x28]
jmp 0x4098b3
xor eax, eax
mov dword [esp + 0x78], 0xb
and eax, 2
lea ecx, [esp + 0x8c]
push ecx
cmp eax, 1
sbb eax, eax
push 0xffff9a19
add eax, 0xb
push esi
mov dword [esp + 0x8c], str.Simple
mov dword [esp + 0x80], eax
call fcn.004bdce0
lea ecx, [esp + 0x30]
mov dword [esp + 0x90], eax
add esp, 0xc
lea edx, [ebx + 0x34]
push 1
push ecx
push edx
push 0
push esi
call fcn.00408780
add esp, 0x14
test ax, ax
jne 0x409cb3
lea edi, [esp + 0x24]
xor eax, eax
mov ecx, 0x1a
push eax
rep stosd dword es:[edi], eax
mov word [esp + 0x28], 0x68
mov word [esp + 0x2a], 0x222
push 0x10
push esi
call fcn.004b2600
mov dword [esp + 0x38], eax
add esp, 0xc
mov eax, 0xffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], 0xb
mov dword [esp + 0x6c], 0xb
mov dword [esp + 0x40], 0xb
mov eax, 0xa
test esi, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x68], 0xfffffffe
je 0x409994
mov eax, dword [esi + 0xac]
test eax, eax
je 0x409994
mov eax, dword [eax + 0x28]
jmp 0x409996
xor eax, eax
and eax, 2
lea ecx, [esp + 0x8c]
push ecx
cmp eax, 1
sbb eax, eax
push 0xffff9a1a
add eax, 0xb
push esi
mov dword [esp + 0x8c], str.BoolPlus
mov dword [esp + 0x80], eax
call fcn.004bdce0
lea ecx, [esp + 0x30]
mov dword [esp + 0x90], eax
add esp, 0xc
lea edx, [ebx + 0x38]
push 1
push ecx
push edx
push 0
push esi
call fcn.00408780
add esp, 0x14
test ax, ax
jne 0x409cb3
mov eax, dword [esi + 0xac]
lea edx, [esp + 0x1c]
mov ecx, dword [eax + 8]
push ecx
push edx
push 0
push esi
call fcn.0041df30
add esp, 0x10
test ax, ax
jne 0x409cb3
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 4]
test edi, edi
je 0x409a70
mov eax, dword [esp + 0x1c]
cmp dword [eax + 8], edi
jne 0x409a46
lea eax, [esp + 0x14]
push 0x5118f0
push edi
push eax
push ebx
call fcn.0041e310
add esp, 0x10
test ax, ax
jne 0x409a46
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x3c], eax
lea eax, [esp + 0x14]
push 0
push edi
push eax
push ebx
call fcn.0041e310
add esp, 0x10
test ax, ax
jne 0x409a6a
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov ebp, dword [esp + 0x14]
add ebp, 0x14
mov edi, dword [edi]
test edi, edi
jne 0x409a1d
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.0041e060
add esp, 8
cmp dword [ebx + 0x3c], 0
jne 0x409aa3
lea eax, [ebx + 0x3c]
push eax
push ebx
call fcn.0041dd10
add esp, 8
test ax, ax
je 0x409a9d
mov dword [ebx + 0x3c], 0xffffff9c
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x48], eax
lea edi, [esp + 0x24]
xor eax, eax
mov ecx, 0x1a
push eax
rep stosd dword es:[edi], eax
mov word [esp + 0x28], 0x68
mov word [esp + 0x2a], 0x222
push 1
push 4
push 0x12
push esi
call fcn.004b3930
add esp, 0x10
push eax
push esi
call fcn.004b2600
mov dword [esp + 0x38], eax
add esp, 0xc
push 0
push 6
push esi
call fcn.004b2600
mov dword [esp + 0x3c], eax
add esp, 0xc
push 0
push 6
push esi
call fcn.004b2600
mov dword [esp + 0x40], eax
add esp, 0xc
cmp byte [esp + 0x11], 0
je 0x409b24
push 0
push 1
push 4
push 0x13
push esi
call fcn.004b3930
add esp, 0x10
push eax
push esi
call fcn.004b2600
mov dword [esp + 0x38], eax
add esp, 0xc
cmp byte [esp + 0x12], 0
je 0x409b4a
push 0
push 1
push 4
push 0xe
push esi
call fcn.004b3930
add esp, 0x10
push eax
push esi
call fcn.004b2600
mov dword [esp + 0x3c], eax
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x409b62
push 0
push 5
push esi
call fcn.004b2600
mov dword [esp + 0x40], eax
add esp, 0xc
mov eax, 0xb
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x6c], eax
test esi, esi
je 0x409b8a
mov eax, dword [esi + 0xac]
test eax, eax
je 0x409b8a
mov eax, dword [eax + 0x28]
jmp 0x409b8c
xor eax, eax
and eax, 2
cmp eax, 1
sbb eax, eax
push 1
add eax, 0xb
lea ecx, [esp + 0x28]
push ecx
lea edx, [ebx + 0x44]
mov dword [esp + 0x7c], eax
push edx
mov eax, 0xa
push 0
mov dword [esp + 0x88], eax
push esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x84], eax
call fcn.00408780
add esp, 0x14
test ax, ax
jne 0x409cb3
lea edi, [esp + 0x24]
xor eax, eax
mov ecx, 0x1a
push eax
rep stosd dword es:[edi], eax
mov word [esp + 0x28], 0x68
mov word [esp + 0x2a], 0x222
push 6
push esi
call fcn.004b2600
mov dword [esp + 0x3c], eax
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x409c14
push 0
push 5
push esi
call fcn.004b2600
mov dword [esp + 0x3c], eax
add esp, 0xc
mov eax, 0xb
push 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x28]
lea edx, [ebx + 0x40]
mov dword [esp + 0x58], eax
push ecx
mov dword [esp + 0x6c], eax
push edx
mov dword [esp + 0x74], 0xfffffffe
push 0
push esi
call fcn.00408780
add esp, 0x14
test ax, ax
jne 0x409cb3
lea edi, [ebx + 0x4c]
push 0xffffffffffffffff
push edi
push esi
call fcn.0040fc00
add esp, 0xc
push 0xfffffffffffffffe
push edi
push esi
call fcn.0040fc00
add esp, 0xc
cmp dword [ebx + 0x3c], 0xffffff9c
je 0x409c79
push 0xfffffffffffffffd
push edi
push esi
call fcn.0040fc00
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
je 0x409ca5
xor ebx, ebx
mov eax, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.0040fc00
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x14], ecx
cmp ecx, ebx
jne 0x409c87
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x17c
ret
push 0xffff980e
push 2
push esi
call fcn.004bda00
mov ax, 0xfffe
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x17c
ret