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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4130d8
sub esp, 0x50
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 0x412b2f
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x412b2f
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x412b2f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x412b57
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x412b57
mov dword [eax + 8], 0xfffffade
jmp 0x412b57
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x412b4d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x412b4d
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x52970c]
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
call fcn.00412960
movzx eax, byte [esp + 0x10]
test al, al
jne 0x412b88
xor eax, eax
jmp 0x412b94
call fcn.0041ed30
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x412b51
lea eax, [0x529958]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004407c0
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
call fcn.00412960
movzx eax, byte [esp + 0x10]
test al, al
je 0x412cf5
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x52996c], al
mov eax, dword [0x54f518]
cmp eax, 1
jne 0x412c0e
mov eax, 1
jmp 0x412c1c
cmp eax, 2
jne 0x412c1a
mov eax, 2
jmp 0x412c1c
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x518244]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004407c0
lea eax, [0x518264]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004407c0
movzx eax, byte [0x533888]
test al, al
je 0x412cdd
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x5338b8]
mov ecx, dword [0x5338bc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
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.0044ae50
mov eax, dword [0x5338b8]
add eax, 1
mov ecx, dword [0x5338bc]
mov dword [0x5338b8], eax
adc ecx, 0
mov dword [0x5338bc], ecx
mov eax, dword [0x529618]
mov dword [esp + 0x44], eax
mov ecx, dword [0x52961c]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x412d24
nop
lea eax, [0x529958]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00440ad0
add esp, 0x50
ret
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x412d59
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, 0x24c
mov dword [esp], ebx
call fcn.00401c00
mov eax, dword [esp + 4]
mov ecx, dword [0x52f2d0]
cmp ecx, eax
je 0x412d15
jmp 0x413021
call fcn.00414a90
lea eax, [0x4a4f00]
mov dword [esp], eax
call fcn.00454f20
mov eax, dword [0x54f260]
mov dword [0x529998], eax
mov dword [0x52999c], eax
mov ecx, dword [0x54f27c]
cmp ecx, eax
jge 0x412d8e
mov dword [0x529998], ecx
lea eax, [0x54fa50]
mov dword [esp], eax
call fcn.00401e20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x5299d4], eax
mov dword [0x5299d0], ecx
mov dword [0x5299c0], 0
mov dword [0x5299c4], 0
mov eax, dword [esp + 0x14]
mov dword [0x529968], eax
call fcn.00457260
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x5299a4], eax
mov dword [0x5299a0], ecx
mov dword [0x5299cc], eax
mov dword [0x5299c8], ecx
movzx eax, byte [0x533888]
test al, al
je 0x412e4f
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.0044ae50
lea eax, [0x4a4fa4]
mov dword [esp], eax
call fcn.00454f20
lea eax, [0x4a4f04]
mov dword [esp], eax
call fcn.00454f20
call fcn.00415aa0
inc dword [0x529994]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x54f260]
lea ebx, [0x54f9e0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.00419dd0
mov eax, dword [0x54fa40]
mov ecx, dword [0x54fa44]
mov dword [0x5299e8], eax
mov dword [0x5299ec], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412ec7
mov byte [esp], 0
call fcn.0043e250
lea eax, [0x54f25c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e00
mov eax, dword [0x54f25c]
cmp eax, 1
jne 0x412eef
mov eax, 1
jmp 0x412ef5
cmp eax, 2
sete al
mov byte [0x54f3d4], al
test al, al
je 0x412f06
mov eax, 1
jmp 0x412f0d
movzx eax, byte [0x54f3d5]
mov byte [0x54f3d0], al
nop
mov dword [0x529918], 0xffffffff
mov dword [0x529924], 0xffffffff
call fcn.00416090
call fcn.00419ce0
lea eax, [0x54f254]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e00
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x4130f0]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.00454f20
lea eax, [0x518264]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00440ad0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x412feb
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x412fe3
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x412ff1
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x412ff1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413001
lea eax, [0x4a4f10]
mov dword [esp], eax
call fcn.00454ec0
nop
lea eax, [0x529958]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00440ad0
add esp, 0x50
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.00431fb0
lea eax, [0x49a8db]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00432890
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00432690
lea eax, [0x49a085]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00432890
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00432530
lea eax, [0x49af6c]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00432890
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00432530
call fcn.004321d0
call fcn.00432020
lea eax, [0x49de8f]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00430980
nop
call fcn.00455030
jmp fcn.00412ac0