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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [ebx + 0x1c]
push 0xc40
push 0
push esi
mov dword [esp + 0x20], edi
call fcn.100d26e0
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push ebx
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x38], xmm0
call fcn.1005d880
mov ecx, dword [esp + 0x74]
mov ebp, eax
mov eax, dword [esp + 0x8c]
push esi
push 0x1010b5e0
push ebx
mov dword [esp + 0x2c], ebp
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esp + 0x84], eax
mov byte [esi + 0x20], al
mov dword [esi + 0xc], ebp
call fcn.1005da00
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
cmp byte [esp + 0x68], al
je 0x10081a6d
cmp byte [esi + 0x18], 2
jne 0x10081fce
cmp byte [esi + 0x1a], 5
jb 0x10081fce
lea eax, [esp + 0x70]
push eax
push ebx
call fcn.1005ddd0
mov ecx, dword [esp + 0x78]
add esp, 8
movzx eax, ax
mov dword [esi + 0x1c], eax
test ecx, ecx
jne 0x10081fd7
jmp 0x10081aa3
lea eax, [esp + 0x70]
push eax
push ebx
call fcn.1005d990
mov ecx, dword [esp + 0x78]
add esp, 8
test ecx, ecx
jne 0x10081fd7
cmp byte [esi + 0x18], 1
jne 0x10081fce
cmp byte [esi + 0x1a], 4
jb 0x10081fce
cmp al, 4
ja 0x10081fce
movzx eax, byte [esi + 0x1a]
add eax, ebp
push eax
push ebx
call fcn.1005df10
mov ecx, eax
add esp, 8
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fc7
cmp byte [esp + 0x68], al
je 0x10081b2d
lea edi, [esi + 0x4d8]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
push ebx
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], eax
call fcn.1005d880
mov dword [esi + 0x4ec], eax
mov eax, dword [esi + 0x1c]
push eax
push ebx
mov dword [esi + 0x4f0], eax
call fcn.1005df50
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
push dword [esp + 0x68]
lea eax, [esi + 0x6c]
push 1
push ebx
push eax
call fcn.10082520
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
jmp 0x10081c06
push 0
push 0
lea eax, [esi + 0x24]
push ebx
push eax
call fcn.10082520
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fc7
mov eax, dword [esi + 0x30]
cmp eax, 1
jbe 0x10081b68
cmp dword [esi + 0x3c], eax
jae 0x10081b68
cmp byte [esp + 0x78], cl
sete cl
add ecx, 2
jmp 0x10081fd3
push 0
push 0
lea edi, [esi + 0x4d8]
push ebx
push edi
call fcn.10082520
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
push eax
push 1
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.10082520
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
push eax
push 1
lea eax, [esi + 0x6c]
push ebx
push eax
call fcn.10082520
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
lea eax, [esi + 0x558]
push eax
lea eax, [esi + 0x554]
push eax
lea eax, [esi + 0x550]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10082320
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x4e4]
ja 0x10081fc0
cmp byte [esp + 0x78], 0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x54c], eax
je 0x10081c3d
movzx eax, dx
mov dword [esp + 0x7c], eax
test edx, edx
jle 0x10081c35
cmp eax, dword [esi + 0x30]
jb 0x10081c35
mov ecx, 6
jmp 0x10081fd3
mov eax, dword [esi + 0x30]
mov dword [esi + 0x10], eax
jmp 0x10081c4f
cmp dword [esi + 0x30], 1
mov dword [esp + 0x7c], 0
ja 0x10081fc0
test edx, edx
js 0x10081fd7
push dword [esp + 0x74]
cmp byte [esp + 0x6c], 0
mov ecx, 0x3000
push esi
mov eax, 0x1000
cmovne eax, ecx
push eax
push ebp
push ebx
push dword [esp + 0x90]
lea eax, [esi + 0x55c]
push edi
push eax
call fcn.10083fd0
mov ecx, eax
add esp, 0x20
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
mov eax, dword [esi + 0x5cc]
add eax, ebp
push eax
push ebx
call fcn.1005df10
mov ecx, eax
add esp, 8
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
push dword [esp + 0x68]
push eax
lea eax, [esi + 0x4b4]
push ebx
push eax
call fcn.10082520
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
cmp dword [esi + 0x5e0], 0xffff
jne 0x10081cf6
cmp byte [esp + 0x68], al
jne 0x10081cf6
mov dword [esi + 0x7e8], eax
jmp 0x10081eec
push dword [esi + 0x610]
lea eax, [esi + 0xc28]
push ebp
push ebx
push eax
call fcn.10084350
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
mov eax, dword [esi + 0x600]
add eax, ebp
push eax
push ebx
call fcn.1005df10
mov ecx, eax
add esp, 8
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
push dword [esp + 0x68]
push eax
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.10082520
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
mov eax, dword [esp + 0x48]
cmp eax, 0x100
ja 0x10081ed3
lea ecx, [esp + 0x70]
mov dword [esi + 0x7e8], eax
push ecx
push 0
push eax
push 0
push 0x28c
push dword [esp + 0x28]
call fcn.1005fa30
add esp, 0x18
mov edx, eax
cmp dword [esp + 0x70], 0
jne 0x10081ed3
mov ecx, dword [esp + 0x48]
lea ebp, [esi + 0x7ec]
test ecx, ecx
je 0x10081dc0
mov eax, ebp
mov edi, ecx
nop dword [eax + eax]
mov dword [eax], edx
lea eax, [eax + 4]
add edx, 0x28c
sub edi, 1
jne 0x10081db0
xor edi, edi
test ecx, ecx
je 0x10081e18
cmp byte [esp + 0x68], 0
mov ecx, 0x4000
mov eax, 0x1000
cmovne eax, ecx
mov dword [esp + 0x64], eax
nop dword [eax]
push dword [esp + 0x74]
push esi
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push ebx
push edi
push eax
push dword [ebp]
call fcn.10083fd0
add esp, 0x20
mov dword [esp + 0x70], eax
test eax, eax
jne 0x10081ecf
mov ecx, dword [esp + 0x48]
inc edi
mov eax, dword [esp + 0x64]
add ebp, 4
cmp edi, ecx
jb 0x10081de0
cmp byte [esp + 0x68], 0
je 0x10081e28
cmp ecx, 1
jbe 0x10081ecf
mov eax, dword [esi + 0x604]
mov ebp, dword [esp + 0x10]
add eax, ebp
mov edi, dword [esi + 0x4c0]
push eax
push ebx
call fcn.1005df10
add esp, 8
mov dword [esp + 0x64], eax
test eax, eax
jne 0x10081ec9
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.1005d990
mov cl, al
add esp, 8
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x10081ec9
mov byte [esi + 0xbec], cl
mov dword [esi + 0xc00], eax
test cl, cl
je 0x10081eb2
cmp cl, 3
je 0x10081e84
mov eax, 3
mov dword [esp + 0x70], eax
jmp 0x10081ed3
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.1005ddd0
movzx ecx, ax
add esp, 8
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x10081ec9
test ecx, ecx
jne 0x10081eac
mov eax, 3
mov dword [esp + 0x70], eax
jmp 0x10081ed3
lea edi, [ecx + 1]
lea edi, [ecx + edi*2]
lea eax, [esi + 0xbf4]
mov dword [esi + 0xbf8], edi
push eax
push edi
push ebx
call fcn.1005d590
add esp, 0xc
mov dword [esp + 0x70], eax
jmp 0x10081ed3
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
call fcn.10082230
mov ecx, dword [esp + 0x74]
add esp, 4
test ecx, ecx
jne 0x10081fd7
cmp dword [esi + 0x5cc], 0
je 0x10081fc0
mov eax, dword [esi + 0x4c0]
push 0
mov dword [esi + 0x14], eax
lea eax, [esi + 0x548]
push 0
push eax
lea eax, [esi + 0x6c]
push eax
call fcn.10082320
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
cmp byte [esp + 0x68], al
jne 0x10081fa7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10081fa7
cmp dword [esi + 0x5e0], 0xffff
je 0x10081f4b
mov byte [esp + 0x68], 1
cmp byte [esp + 0x78], cl
jne 0x10081f50
mov byte [esp + 0x68], 0
push dword [esp + 0x68]
lea edi, [esi + 0x49c]
push dword [esi + 0x5c4]
push ebp
push ebx
push eax
push edi
call fcn.10081020
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
cmp dword [esi + 0x5e0], 0xffff
jne 0x10081fa7
push dword [esi + 0x5c8]
lea eax, [esi + 0x90]
push ebp
push ebx
push dword [esi + 0x14]
push edi
push eax
call fcn.10081310
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x10081fd7
push dword [esp + 0x7c]
push esi
call fcn.10082280
mov ecx, dword [esp + 0x78]
add esp, 8
mov dword [esi + 0x544], eax
jmp 0x10081fd7
mov ecx, 3
jmp 0x10081fd3
cmp byte [esp + 0x78], 0
je 0x10081fd7
mov ecx, 2
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10082010
cmp dword [esp + 0x38], 0
mov esi, dword [eax + 0x1c]
je 0x10081ff7
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.1005ded0
add esp, 8
push dword [esp + 0x34]
push esi
call fcn.1005f8c0
mov eax, dword [esp + 0x78]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x50
ret