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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4186f2
sub esp, 0x4c
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x41861b
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x41861b
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x41861b
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4181b1
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4181b1
mov dword [eax + 8], 0xfffffade
jmp 0x4181b1
inc dword [0xbfd91c]
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
call fcn.00418010
movzx eax, byte [esp + 0x10]
test al, al
jne 0x41860a
xor eax, eax
test al, al
jne 0x4181ab
nop
lea eax, [0xbfe220]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043b2d0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
call fcn.00418010
movzx eax, byte [esp + 0x10]
test al, al
je 0x4185ea
mov eax, dword [esp + 0x50]
cmp eax, 2
sete al
mov byte [0xbfe234], al
mov eax, dword [0xc10b5c]
cmp eax, 1
jne 0x4185d4
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0x80c12c]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043b2d0
movzx eax, byte [0xc08588]
test al, al
jne 0x418563
mov eax, dword [0xbfd6b8]
mov dword [esp + 0x40], eax
mov ecx, dword [0xbfd6bc]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x4182be
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x4182f3
mov dword [esp + 0x24], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x3c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x358
mov dword [esp], ebx
call fcn.00402430
mov eax, dword [esp + 4]
mov ecx, dword [0xc0212c]
cmp eax, ecx
je 0x4182af
jmp 0x41863d
call fcn.004198a0
lea eax, [0x924754]
mov dword [esp], eax
call fcn.00450c00
mov eax, dword [0xc10790]
mov dword [0xbfe260], eax
mov dword [0xbfe264], eax
mov ecx, dword [0xc10798]
cmp eax, ecx
jle 0x418328
mov dword [0xbfe260], ecx
lea eax, [0xc13e80]
mov dword [esp], eax
call fcn.00402630
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0xbfe298], eax
mov dword [0xbfe29c], ecx
mov dword [0xbfe288], 0
mov dword [0xbfe28c], 0
mov eax, dword [esp + 0x14]
mov dword [0xbfe230], eax
call fcn.004534e0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [0xbfe268], ecx
mov dword [0xbfe26c], eax
mov dword [0xbfe290], ecx
mov dword [0xbfe294], eax
movzx eax, byte [0xc08588]
test al, al
jne 0x418514
lea eax, [0x924830]
mov dword [esp], eax
call fcn.00450c00
lea eax, [0x924758]
mov dword [esp], eax
call fcn.00450c00
call fcn.0041a7a0
inc dword [0xbfe25c]
lea eax, [0xc10ea0]
mov dword [esp], eax
call fcn.00416830
mov eax, dword [0xc128ec]
mov ecx, dword [0xc128e8]
mov dword [0xbfe2b0], ecx
mov dword [0xbfe2b4], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x418506
nop
lea eax, [0xc1078c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402610
mov eax, dword [0xc1078c]
cmp eax, 1
jne 0x4184fb
mov eax, 1
mov byte [0xc10a34], al
test al, al
je 0x4184ef
mov eax, 1
mov byte [0xc10a30], al
nop
mov dword [0xbfe1f8], 0xffffffff
mov dword [0xbfe204], 0xffffffff
call fcn.0041b890
call fcn.0041ee50
lea eax, [0xc10780]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402610
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [0xc10ed0], ecx
mov dword [0xc10ed4], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea eax, [0x44de90]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.00450c00
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4184de
lea eax, [0xbfe220]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043b5e0
add esp, 0x4c
ret
nop
lea eax, [0x924768]
mov dword [esp], eax
call fcn.00450ba0
jmp 0x4184bf
movzx eax, byte [0xc10a35]
jmp 0x41843a
cmp eax, 2
sete al
jmp 0x418427
mov byte [esp], 0
call fcn.004378b0
jmp 0x4183fc
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00445f00
jmp 0x4183a3
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0xc085bc]
mov ecx, dword [0xc085b8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00445f00
mov eax, dword [0xc085b8]
add eax, 1
mov ecx, dword [0xc085bc]
mov dword [0xc085b8], eax
adc ecx, 0
mov dword [0xc085bc], ecx
jmp 0x418297
cmp eax, 2
jne 0x4185e3
mov eax, 2
jmp 0x418261
xor eax, eax
jmp 0x418261
nop
lea eax, [0xbfe220]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043b5e0
add esp, 0x4c
ret
call fcn.00420150
cmp dword [esp], 0xffffffff
setne al
jmp 0x4181e4
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x418639
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x418639
mov dword [eax + 8], 0xfffffade
add esp, 0x4c
ret
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call fcn.0042d270
lea eax, [0x90632e]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0042db10
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0042d950
lea eax, [0x905660]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0042db10
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042d820
lea eax, [0x906ba7]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.0042db10
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042d820
call fcn.0042d490
call fcn.0042d2e0
lea eax, [0x90adea]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042c440
nop
call fcn.00450d20
jmp fcn.00418130