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

Disassembly:
sub esp, 0x8c
lea eax, [esp + 0x14]
push ebx
mov ebx, dword [esp + 0xa0]
push esi
push eax
mov esi, dword [ebx + 0x10]
push esi
call fcn.100132c0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.100132c0
lea eax, [esp + 0x7c]
push eax
push esi
call fcn.100132c0
lea eax, [esp + 0x98]
push eax
push esi
call fcn.100132c0
lea eax, [esp + 0x28]
push eax
push esi
call fcn.100132c0
lea eax, [esp + 0x6c]
push eax
push esi
call fcn.100132c0
lea eax, [esp + 0x88]
push eax
push esi
call fcn.100132c0
lea eax, [esp + 0x44]
push eax
push dword [esp + 0xd4]
call fcn.1000d530
mov esi, eax
add esp, 0x40
test esi, esi
jne 0x10040a6c
lea eax, [esp + 0x48]
push eax
push esi
call fcn.1000d530
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6c
push ebp
mov ebp, dword [esp + 0xa0]
push edi
test ebp, ebp
jne 0x1004059b
mov edi, dword [esp + 0xa8]
lea eax, [esp + 0x28]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.1000f770
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.10033dd0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x28]
push eax
push edi
call fcn.1000d9b0
jmp 0x10040604
lea eax, [esp + 0x64]
push eax
lea edi, [ebp + 2]
push edi
call fcn.1000d640
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.1000f770
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.10034240
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x28]
push eax
push edi
call fcn.1000d640
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
push eax
call fcn.1000fd40
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x14]
push eax
push dword [esp + 0xa4]
call fcn.1000d8e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.1000f1a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10040a6a
lea eax, [ebx + 4]
push eax
push 1
call fcn.1000d530
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
mov edi, dword [esp + 0xb0]
mov dword [ebx], eax
lea eax, [edi + 4]
push eax
push esi
call fcn.1000d530
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
mov dword [edi], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.1000d9b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
jmp 0x100406d0
lea eax, [esp + 0x14]
push eax
push 1
call fcn.10009a40
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10013280
add esp, 8
test eax, eax
js 0x1004071d
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.10013280
add esp, 8
test eax, eax
jns 0x10040930
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.100131e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x64]
push eax
push 1
call fcn.10050400
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.10013300
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x8c]
push eax
push ebx
call fcn.100133f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x4c]
push eax
push ebx
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
push ebx
lea eax, [esp + 0x14]
push edi
push eax
call fcn.100131e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
xor dword [edi], 1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.10050400
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.100133f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.10013420
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10013420
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.100133f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.100131e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.1000d9b0
mov esi, eax
add esp, 8
test esi, esi
je 0x100406d0
jmp 0x10040a6a
cmp dword [esp + 0xa0], 0xb
mov ecx, dword [esp + 0x24]
jne 0x10040a02
test ecx, ecx
jne 0x10040a02
cmp dword [esp + 0x2c], 1
jne 0x10040a02
mov eax, dword [esp + 0x30]
cmp dword [eax], 3
jne 0x10040a02
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
push ebx
push edi
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x10]
push edi
push eax
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
xor dword [edi], 1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.100133d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10040a6a
xor dword [esp + 0x38], 1
mov ecx, dword [esp + 0x24]
test ebp, ebp
jne 0x10040a2c
test ecx, ecx
jne 0x10040a65
cmp dword [esp + 0x2c], 1
jne 0x10040a65
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
cmp ecx, 1
je 0x10040a21
cmp ecx, 4
jne 0x10040a65
mov eax, dword [esp + 0xb4]
mov dword [eax], ecx
jmp 0x10040a4d
test ecx, ecx
jne 0x10040a65
cmp dword [esp + 0x2c], 1
jne 0x10040a65
mov eax, dword [esp + 0x30]
cmp dword [eax], 1
jne 0x10040a65
mov eax, dword [esp + 0xb4]
mov dword [eax], 1
push dword [esp + 0xb8]
lea eax, [esp + 0x3c]
push eax
call fcn.100133d0
mov esi, eax
add esp, 8
jmp 0x10040a6a
mov esi, 0xcb
pop edi
pop ebp
lea eax, [esp + 0x1c]
push eax
call fcn.100132e0
lea eax, [esp + 0x34]
push eax
call fcn.100132e0
lea eax, [esp + 0x74]
push eax
call fcn.100132e0
lea eax, [esp + 0x8c]
push eax
call fcn.100132e0
lea eax, [esp + 0x18]
push eax
call fcn.100132e0
lea eax, [esp + 0x58]
push eax
call fcn.100132e0
lea eax, [esp + 0x70]
push eax
call fcn.100132e0
add esp, 0x1c
mov eax, esi
pop esi
pop ebx
add esp, 0x8c
ret