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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4157ac
sub esp, 0x60
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 0x4151af
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x4151af
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x4151af
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4151d7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4151d7
mov dword [eax + 8], 0xfffffade
jmp 0x4151d7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4151cd
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4151cd
mov dword [eax + 8], 0xfffffade
add esp, 0x60
ret
inc dword [0x6167fc]
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
call fcn.00414fd0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x415208
xor eax, eax
jmp 0x415214
call fcn.00422b20
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4151d1
lea eax, [0x616bd8]
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.004476a0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
call fcn.00414fd0
movzx eax, byte [esp + 0x10]
test al, al
je 0x41538d
mov eax, dword [0x63b7b8]
cmp eax, 1
jne 0x415283
mov eax, 1
jmp 0x415291
cmp eax, 2
jne 0x41528f
mov eax, 2
jmp 0x415291
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x64]
cmp ecx, 2
sete dl
mov byte [esp + 0x23], dl
lea ebx, [0x5d3210]
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.004476a0
lea eax, [0x5d3230]
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.004476a0
movzx eax, byte [esp + 0x23]
mov byte [0x616bec], al
movzx eax, byte [0x61fa08]
test al, al
je 0x415375
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [0x61fa38]
mov ecx, dword [0x61fa3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00453300
mov eax, dword [0x61fa38]
mov ecx, dword [0x61fa3c]
add eax, 1
adc ecx, 0
mov dword [0x61fa38], eax
mov dword [0x61fa3c], ecx
mov eax, dword [0x616650]
mov dword [esp + 0x54], eax
mov ecx, dword [0x616654]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x4153bc
nop
lea eax, [0x616bd8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004479c0
add esp, 0x60
ret
mov ebx, dword [esp + 0x34]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jge 0x4153f1
mov dword [esp + 0x34], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x4c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00401fd0
mov eax, dword [0x61b458]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4153ad
jmp 0x4156f5
call fcn.00417170
lea eax, [0x5197c4]
mov dword [esp], eax
call fcn.00460030
mov eax, dword [0x63b408]
mov dword [0x616c10], eax
mov dword [0x616c14], eax
mov ecx, dword [0x63b424]
cmp ecx, eax
jge 0x415426
mov dword [0x616c10], ecx
lea eax, [0x63bdb0]
mov dword [esp], eax
call fcn.00402240
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x616c4c], eax
mov dword [0x616c48], ecx
mov dword [0x616c38], 0
mov dword [0x616c3c], 0
mov eax, dword [esp + 0x28]
mov dword [0x616be8], eax
call fcn.004623a0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0x616c1c], eax
mov dword [0x616c18], ecx
mov dword [0x616c44], eax
mov dword [0x616c40], ecx
movzx eax, byte [0x61fa08]
test al, al
je 0x4154e7
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00453300
lea eax, [0x519894]
mov dword [esp], eax
call fcn.00460030
lea eax, [0x5197c8]
mov dword [esp], eax
call fcn.00460030
call fcn.00418150
nop
lea eax, [0x616c0c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402140
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [0x63b408]
lea ebx, [0x63bd60]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
call fcn.0041d310
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0x63b800]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00418740
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41559b
mov byte [esp], 0
call fcn.00443780
lea eax, [0x63b404]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402210
mov eax, dword [0x63b404]
cmp eax, 1
jne 0x4155c3
mov eax, 1
jmp 0x4155c9
cmp eax, 2
sete al
mov byte [0x63b624], al
test al, al
je 0x4155da
mov eax, 1
jmp 0x4155e1
movzx eax, byte [0x63b625]
mov byte [0x63b620], al
nop
mov dword [0x616b98], 0xffffffff
mov dword [0x616ba4], 0xffffffff
call fcn.004194c0
call fcn.0041d1c0
lea eax, [0x63b3fc]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402210
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 + 0x50], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x4157c0]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.00460030
lea eax, [0x5d3230]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004479c0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4156bf
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4156b7
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x4156c5
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x4156c5
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4156d5
lea eax, [0x5197d4]
mov dword [esp], eax
call fcn.0045ffd0
nop
lea eax, [0x616bd8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004479c0
add esp, 0x60
ret
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call fcn.00436a60
lea eax, [0x50e1cf]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00437360
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00437160
lea eax, [0x50d9ef]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00437360
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00436fe0
lea eax, [0x50e789]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00437360
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00436fe0
call fcn.00436c80
call fcn.00436ad0
lea eax, [0x511202]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00415140