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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415968
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 0x4153bf
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x4153bf
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x4153bf
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4153e7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4153e7
mov dword [eax + 8], 0xfffffade
jmp 0x4153e7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4153dd
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4153dd
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x5e3d2c]
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.004151f0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x415418
xor eax, eax
jmp 0x415424
call fcn.004215a0
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4153e1
lea eax, [0x5e3f78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004452e0
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.004151f0
movzx eax, byte [esp + 0x10]
test al, al
je 0x415585
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x5e3f8c], al
mov eax, dword [0x609bf8]
cmp eax, 1
jne 0x41549e
mov eax, 1
jmp 0x4154ac
cmp eax, 2
jne 0x4154aa
mov eax, 2
jmp 0x4154ac
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x5cb208]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004452e0
lea eax, [0x5cb228]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004452e0
movzx eax, byte [0x5edec8]
test al, al
je 0x41556d
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x5edef8]
mov ecx, dword [0x5edefc]
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.00450980
mov eax, dword [0x5edef8]
add eax, 1
mov ecx, dword [0x5edefc]
mov dword [0x5edef8], eax
adc ecx, 0
mov dword [0x5edefc], ecx
mov eax, dword [0x5e3b40]
mov dword [esp + 0x44], eax
mov ecx, dword [0x5e3b44]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x4155b4
nop
lea eax, [0x5e3f78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004455f0
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 0x4155e9
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.00401c10
mov eax, dword [esp + 4]
mov ecx, dword [0x5e9910]
cmp ecx, eax
je 0x4155a5
jmp 0x4158b1
call fcn.00417320
lea eax, [0x518b18]
mov dword [esp], eax
call fcn.0045c690
mov eax, dword [0x6098ac]
mov dword [0x5e3fb8], eax
mov dword [0x5e3fbc], eax
mov ecx, dword [0x6098c8]
cmp ecx, eax
jge 0x41561e
mov dword [0x5e3fb8], ecx
lea eax, [0x60a130]
mov dword [esp], eax
call fcn.00401e50
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x5e3ff4], eax
mov dword [0x5e3ff0], ecx
mov dword [0x5e3fe0], 0
mov dword [0x5e3fe4], 0
mov eax, dword [esp + 0x14]
mov dword [0x5e3f88], eax
call fcn.0045ea00
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x5e3fc4], eax
mov dword [0x5e3fc0], ecx
mov dword [0x5e3fec], eax
mov dword [0x5e3fe8], ecx
movzx eax, byte [0x5edec8]
test al, al
je 0x4156df
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.00450980
lea eax, [0x518bdc]
mov dword [esp], eax
call fcn.0045c690
lea eax, [0x518b1c]
mov dword [esp], eax
call fcn.0045c690
call fcn.00418330
inc dword [0x5e3fb4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x6098ac]
lea ebx, [0x60a0c0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041c640
mov eax, dword [0x60a120]
mov ecx, dword [0x60a124]
mov dword [0x5e4008], eax
mov dword [0x5e400c], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415757
mov byte [esp], 0
call fcn.004416b0
lea eax, [0x6098a8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e20
mov eax, dword [0x6098a8]
cmp eax, 1
jne 0x41577f
mov eax, 1
jmp 0x415785
cmp eax, 2
sete al
mov byte [0x609a94], al
test al, al
je 0x415796
mov eax, 1
jmp 0x41579d
movzx eax, byte [0x609a95]
mov byte [0x609a90], al
nop
mov dword [0x5e3f38], 0xffffffff
mov dword [0x5e3f44], 0xffffffff
call fcn.00418920
call fcn.0041c550
lea eax, [0x6098a0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e20
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, [0x415980]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.0045c690
lea eax, [0x5cb228]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004455f0
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 0x41587b
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415873
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415881
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415881
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415891
lea eax, [0x518b28]
mov dword [esp], eax
call fcn.0045c630
nop
lea eax, [0x5e3f78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004455f0
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.00435080
lea eax, [0x50e40f]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00435960
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00435760
lea eax, [0x50dd49]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00435960
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00435600
lea eax, [0x50e887]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00435960
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00435600
call fcn.004352a0
call fcn.004350f0
lea eax, [0x510a16]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00433a30
nop
call fcn.0045c7a0
jmp fcn.00415350