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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x89ec21
sub esp, 0x6c
mov ecx, dword [esp + 0x78]
cmp ecx, 5
jl 0x89e591
mov eax, dword [esp + 0x74]
mov dword [esp], eax
lea ecx, [0x9e5b08]
mov dword [esp + 4], ecx
mov dword [esp + 8], 5
call fcn.00402840
movzx eax, byte [esp + 0xc]
test al, al
jne 0x89ebbf
mov ecx, dword [esp + 0x78]
cmp ecx, 1
jb 0x89ec16
mov eax, dword [esp + 0x74]
movzx ecx, byte [eax]
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], cl
mov edx, dword [esp + 0x70]
mov ebx, dword [edx + 0x4c]
lea ebp, [0x966800]
mov dword [esp], ebp
mov dword [esp + 4], ebx
lea ebx, [esp + 0x2b]
mov dword [esp + 8], ebx
call fcn.0040c9b0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
movzx ecx, byte [esp + 0x10]
mov edx, dword [esp + 0x78]
lea ebx, [edx - 1]
mov dword [esp + 0x3c], ebx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
mov esi, dword [esp + 0x74]
add ebx, esi
mov dword [esp + 0x58], ebx
test cl, cl
je 0x89e962
cmp edx, 2
jle 0x89e632
cmp byte [esi + 1], 0x3d
jne 0x89e632
lea ecx, [esi + 2]
lea ebx, [edx - 2]
mov edx, eax
mov edi, ebx
mov esi, ecx
xor ebp, ebp
mov eax, dword [esp + 0x84]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x80]
xor ebx, ebx
mov eax, dword [esp + 0x7c]
jmp 0x89e6c6
mov ecx, dword [eax + 0x30]
mov edi, dword [eax + 0x2c]
test ecx, ecx
je 0x89e65a
mov edx, eax
mov esi, edi
mov eax, dword [esp + 0x84]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x7c]
mov edi, ecx
mov ecx, dword [esp + 0x80]
jmp 0x89e6c6
cmp edx, 1
jle 0x89e681
mov edx, eax
mov edi, ebp
mov esi, ebx
xor ebp, ebp
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x3c], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
jmp 0x89e6c6
mov ecx, dword [esp + 0x80]
test ecx, ecx
jle 0x89e872
mov esi, dword [esp + 0x7c]
mov edi, dword [esi + 4]
mov edx, eax
mov eax, dword [esi]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x84]
dec eax
mov dword [esp + 0x38], eax
neg eax
sar eax, 0x1f
and eax, 8
add eax, esi
dec ecx
mov esi, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], eax
mov ecx, dword [edx + 0x44]
test ecx, ecx
je 0x89e7c5
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], esi
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 0x64]
mov ecx, dword [ecx + 0x68]
test eax, eax
jne 0x89e703
mov ecx, dword [0x1284210]
lea eax, [0xc9b768]
mov dword [esp + 0x50], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x40]
mov ebx, dword [eax + 0x44]
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
lea eax, [0xa09db5]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x2b
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 2
call fcn.004dacd0
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov edx, eax
call ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test eax, eax
je 0x89e829
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 0x10]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0089df20
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ebx
add esp, 0x6c
ret
movzx eax, byte [esp + 0x2a]
mov byte [esp + 0x2b], al
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
movzx eax, byte [esp + 0x2b]
lea ecx, [0x95d1a0]
mov dword [esp + 0x5c], ecx
lea ecx, [0x11c2e00]
lea eax, [ecx + eax*8]
mov dword [esp + 0x60], eax
mov dword [esp], esi
mov dword [esp + 4], edx
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
lea eax, [0xa02391]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x21
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.0089df20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x6c
ret
movzx eax, byte [esp + 0x2a]
cmp al, 0x68
je 0x89eb58
mov ecx, dword [esp + 0x70]
movzx edi, byte [ecx + 5]
xchg edi, eax
test al, al
xchg edi, eax
je 0x89ea6d
cmp edx, 2
jle 0x89e9e4
cmp byte [esi + 1], 0x3d
jne 0x89e9e4
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x6c
ret
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x89e9fc
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
jmp 0x89ea30
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
mov esi, dword [ecx]
test edx, edx
jle 0x89ea17
cmp byte [esi], 0x2d
jne 0x89ea17
mov edx, dword [esp + 0x84]
jmp 0x89ea30
cmp eax, 1
jle 0x89ea2a
mov edx, dword [esp + 0x84]
dec edx
add ecx, 8
dec eax
jmp 0x89ea30
xor edx, edx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x6c
ret
mov byte [esp + 0x2b], al
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
movzx eax, byte [esp + 0x2b]
lea ecx, [0x95d1a0]
mov dword [esp + 0x5c], ecx
lea ecx, [0x11c2e00]
lea eax, [ecx + eax*8]
mov dword [esp + 0x60], eax
mov dword [esp], esi
mov dword [esp + 4], edx
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
lea eax, [0xa02c97]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x21
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.0089df20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0089e010
mov eax, dword [0x1284a80]
mov ecx, dword [0x1284a84]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
add esp, 0x6c
ret
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x6c
ret
mov eax, 1
call fcn.0045fa80
nop
call fcn.0045e560
jmp fcn.0089e540