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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x413fe6
sub esp, 0x50
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x413a8f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x413a8f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x413a8f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x413ab7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413ab7
mov dword [eax + 8], 0xfffffade
jmp 0x413ab7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x413aad
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413aad
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x58a49c]
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.004138b0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x413ae8
xor eax, eax
jmp 0x413af4
call fcn.0041f5c0
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x413ab1
lea eax, [0x58a798]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.0043e170
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.004138b0
movzx eax, byte [esp + 0x10]
test al, al
je 0x413c6d
mov eax, dword [0x5afb38]
cmp eax, 1
jne 0x413b63
mov eax, 1
jmp 0x413b71
cmp eax, 2
jne 0x413b6f
mov eax, 2
jmp 0x413b71
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x54]
cmp ecx, 2
sete dl
mov byte [esp + 0x23], dl
lea ebx, [0x4bc08c]
mov dword [esp], ebx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.0043e170
lea eax, [0x4bc0ac]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.0043e170
movzx eax, byte [esp + 0x23]
mov byte [0x58a7ac], al
movzx eax, byte [0x593de8]
test al, al
je 0x413c55
nop
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [0x593e18]
mov ecx, dword [0x593e1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004482a0
mov eax, dword [0x593e18]
mov ecx, dword [0x593e1c]
add eax, 1
adc ecx, 0
mov dword [0x593e18], eax
mov dword [0x593e1c], ecx
mov eax, dword [0x58a370]
mov dword [esp + 0x44], eax
mov ecx, dword [0x58a374]
mov dword [esp + 0x2c], ecx
xor edx, edx
jmp 0x413c9c
nop
lea eax, [0x58a798]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043e490
add esp, 0x50
ret
mov ebx, dword [esp + 0x28]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
cmp edx, ecx
jge 0x413ccb
mov dword [esp + 0x28], edx
mov ecx, dword [eax + edx*4]
mov ecx, dword [ecx + 0x30]
test byte [ecx], al
add ecx, 0x24c
mov dword [esp], ecx
call fcn.00402700
mov eax, dword [esp + 4]
cmp dword [0x58f838], eax
je 0x413c8d
jmp 0x413fcf
call fcn.004154a0
lea eax, [0x504f94]
mov dword [esp], eax
call fcn.00451600
mov eax, dword [0x5af7ec]
mov dword [0x58a7d0], eax
mov dword [0x58a7d4], eax
mov ecx, dword [0x5af804]
cmp ecx, eax
jge 0x413d00
mov dword [0x58a7d0], ecx
lea eax, [0x5b0130]
mov dword [esp], eax
call fcn.00402970
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x58a80c], eax
mov dword [0x58a808], ecx
mov dword [0x58a7f8], 0
mov dword [0x58a7fc], 0
mov eax, dword [esp + 0x24]
mov dword [0x58a7a8], eax
call fcn.004539e0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [0x58a7dc], eax
mov dword [0x58a7d8], ecx
mov dword [0x58a804], eax
mov dword [0x58a800], ecx
movzx eax, byte [0x593de8]
test al, al
je 0x413dc1
nop
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004482a0
lea eax, [0x505048]
mov dword [esp], eax
call fcn.00451600
lea eax, [0x504f98]
mov dword [esp], eax
call fcn.00451600
call fcn.00416050
nop
lea eax, [0x58a7cc]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402870
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [0x5af7ec]
lea ebx, [0x5b00e0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
call fcn.0041a8a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea edx, [0x5afb80]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00416640
mov eax, dword [esp + 0x24]
test eax, eax
je 0x413e75
mov byte [esp], 0
call fcn.0043bde0
lea eax, [0x5af7e8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402940
mov eax, dword [0x5af7e8]
cmp eax, 1
jne 0x413e9d
mov eax, 1
jmp 0x413ea3
cmp eax, 2
sete al
mov byte [0x5af9a4], al
test al, al
je 0x413eb4
mov eax, 1
jmp 0x413ebb
movzx eax, byte [0x5af9a5]
mov byte [0x5af9a0], al
nop
mov dword [0x58a758], 0xffffffff
mov dword [0x58a764], 0xffffffff
call fcn.00417350
call fcn.0041a750
lea eax, [0x5af7e0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402940
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x413ff0]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.00451600
lea eax, [0x4bc0ac]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043e490
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x413f99
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413f91
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x24]
test eax, eax
jmp 0x413f9f
mov eax, dword [esp + 0x24]
test eax, eax
jmp 0x413f9f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x413faf
lea eax, [0x504fa4]
mov dword [esp], eax
call fcn.004515a0
nop
lea eax, [0x58a798]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043e490
add esp, 0x50
ret
lea eax, [0x4fda14]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042f840
nop
call fcn.00451710
jmp fcn.00413a20