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

Disassembly:
push 0xffffffffffffffff
push 0x46beee
mov eax, dword fs:[0]
push eax
sub esp, 0x264
push ebx
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea ecx, [esp + 0x78]
call fcn.0041b610
push 0x474db8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x280], 0
call fcn.00428f20
push str.Setup
lea ecx, [esp + 0x30]
mov byte [esp + 0x280], 1
call fcn.00428f20
mov ecx, dword [edi + 0x1190]
inc ecx
lea esi, [esp + 0x50]
mov byte [esp + 0x27c], 2
call fcn.00417c60
mov esi, eax
lea eax, [esp + 0x68]
push eax
mov ecx, edi
mov byte [esp + 0x280], 3
call fcn.00417e10
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x288], 4
call fcn.00430b70
push esi
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x288], 5
call fcn.00430b70
lea ecx, [esp + 0x38]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x288], 6
call fcn.00430b70
lea ecx, [esp + 0x44]
mov byte [esp + 0x27c], 8
call fcn.004290f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x27c], 9
call fcn.004290f0
lea ecx, [esp + 0x68]
mov byte [esp + 0x27c], 0xa
call fcn.004290f0
lea ecx, [esp + 0x50]
mov byte [esp + 0x27c], 0xb
call fcn.004290f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], 0xc
call fcn.004290f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x27c], 0xd
call fcn.004290f0
push 1
sub esp, 0xc
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00428f90
mov ecx, edi
call fcn.00417f60
test al, al
jne 0x4183b8
mov ecx, dword [0x493380]
test ecx, ecx
je 0x4182b5
push 0
call fcn.0043906b
mov ecx, dword [edi + 0x1190]
inc ecx
push ecx
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00428f90
lea ecx, [esp + 0x84]
call fcn.0041b7c0
lea ecx, [esp + 0x74]
call fcn.00431d8f
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x78]
call fcn.0041b830
push 0x473030
mov ecx, eax
mov byte [esp + 0x280], 0xe
call fcn.00429180
lea ecx, [esp + 0x20]
mov bl, al
mov byte [esp + 0x27c], 0xd
call fcn.004290f0
test bl, bl
jne 0x418345
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
lea ecx, [esp + 0x88]
call fcn.0041b830
mov ecx, edi
call fcn.00417f60
test al, al
je 0x4182b5
mov ecx, dword [0x493380]
test ecx, ecx
je 0x418356
push 5
call fcn.0043906b
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x78]
call fcn.0041b830
push 0x473030
mov ecx, eax
mov byte [esp + 0x280], 0xf
call fcn.00429180
lea ecx, [esp + 0x20]
mov bl, al
mov byte [esp + 0x27c], 0xd
call fcn.004290f0
test bl, bl
je 0x4183b8
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 0
call fcn.004290f0
lea ecx, [esp + 0x74]
mov dword [esp + 0x27c], 0xffffffff
call fcn.0041b6f0
xor al, al
jmp 0x4183fb
inc dword [edi + 0x1190]
mov eax, dword [edi + 0x1190]
mov dword [0x493344], eax
mov eax, dword [edi + 0x1190]
lea ecx, [esp + 0x14]
mov dword [0x493340], eax
mov byte [esp + 0x27c], 0
call fcn.004290f0
lea ecx, [esp + 0x74]
mov dword [esp + 0x27c], 0xffffffff
call fcn.0041b6f0
mov al, 1
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x270
ret