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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x68]
push 0xc40
push 0
push esi
mov ebx, dword [edi + 0x1c]
mov dword [esp + 0x20], ebx
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push edi
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x38], xmm0
call fcn.10108660
mov ecx, dword [esp + 0x74]
mov ebp, eax
push esi
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x90]
push 0x10173bfc
push edi
mov dword [esp + 0x2c], ebp
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esp + 0x84], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0xc], ebp
call fcn.101087d0
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
test bl, bl
je 0x1012b39b
cmp byte [esi + 0x18], 2
jne 0x1012b905
cmp byte [esi + 0x1a], 5
jb 0x1012b905
lea eax, [esp + 0x70]
push eax
push edi
call fcn.10108b70
mov ecx, dword [esp + 0x78]
add esp, 8
movzx eax, ax
mov dword [esi + 0x1c], eax
test ecx, ecx
jne 0x1012b90e
jmp 0x1012b3d1
lea eax, [esp + 0x70]
push eax
push edi
call fcn.10108770
mov ecx, dword [esp + 0x78]
add esp, 8
test ecx, ecx
jne 0x1012b90e
cmp byte [esi + 0x18], 1
jne 0x1012b905
cmp byte [esi + 0x1a], 4
jb 0x1012b905
cmp al, 4
ja 0x1012b905
movzx eax, byte [esi + 0x1a]
add eax, ebp
push eax
push edi
call fcn.10108c90
mov ecx, eax
add esp, 8
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b8fe
test bl, bl
je 0x1012b459
lea ebx, [esi + 0x4d8]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
push edi
movups xmmword [ebx + 0x10], xmm0
mov dword [ebx + 0x20], eax
call fcn.10108660
mov dword [esi + 0x4ec], eax
mov eax, dword [esi + 0x1c]
push eax
push edi
mov dword [esi + 0x4f0], eax
call fcn.10108ce0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
push dword [esp + 0x68]
lea eax, [esi + 0x6c]
push 1
push edi
push eax
call fcn.1012be20
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
jmp 0x1012b532
push 0
push 0
lea eax, [esi + 0x24]
push edi
push eax
call fcn.1012be20
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b8fe
mov eax, dword [esi + 0x30]
cmp eax, 1
jbe 0x1012b494
cmp dword [esi + 0x3c], eax
jae 0x1012b494
cmp byte [esp + 0x78], cl
sete cl
add ecx, 2
jmp 0x1012b90a
push 0
push 0
lea ebx, [esi + 0x4d8]
push edi
push ebx
call fcn.1012be20
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
push eax
push 1
lea eax, [esp + 0x20]
push edi
push eax
call fcn.1012be20
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
push eax
push 1
lea eax, [esi + 0x6c]
push edi
push eax
call fcn.1012be20
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
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.1012bc60
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x4e4]
ja 0x1012b8f7
cmp byte [esp + 0x78], 0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x54c], eax
je 0x1012b569
movzx eax, dx
mov dword [esp + 0x7c], eax
test edx, edx
jle 0x1012b561
cmp eax, dword [esi + 0x30]
jb 0x1012b561
mov ecx, 6
jmp 0x1012b90a
mov eax, dword [esi + 0x30]
mov dword [esi + 0x10], eax
jmp 0x1012b57b
cmp dword [esi + 0x30], 1
mov dword [esp + 0x7c], 0
ja 0x1012b8f7
test edx, edx
js 0x1012b90e
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 edi
push dword [esp + 0x90]
lea eax, [esi + 0x55c]
push ebx
push eax
call fcn.1012d720
mov ecx, eax
add esp, 0x20
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
mov eax, dword [esi + 0x5cc]
add eax, ebp
push eax
push edi
call fcn.10108c90
mov ecx, eax
add esp, 8
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
mov ebx, dword [esp + 0x68]
push ebx
push eax
lea eax, [esi + 0x4b4]
push edi
push eax
call fcn.1012be20
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
cmp dword [esi + 0x5e0], 0xffff
jne 0x1012b621
test bl, bl
jne 0x1012b621
mov dword [esi + 0x7e8], eax
jmp 0x1012b821
push dword [esi + 0x610]
lea eax, [esi + 0xc28]
push ebp
push edi
push eax
call fcn.1012daa0
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
mov eax, dword [esi + 0x600]
add eax, ebp
push eax
push edi
call fcn.10108c90
mov ecx, eax
add esp, 8
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
push ebx
push eax
lea eax, [esp + 0x44]
push edi
push eax
call fcn.1012be20
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
mov eax, dword [esp + 0x48]
cmp eax, 0x100
ja 0x1012b808
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.1010a680
add esp, 0x18
mov edx, eax
cmp dword [esp + 0x70], 0
jne 0x1012b808
mov ecx, dword [esp + 0x48]
lea ebp, [esi + 0x7ec]
test ecx, ecx
je 0x1012b6e3
mov eax, ebp
mov ebx, ecx
mov dword [eax], edx
lea eax, [eax + 4]
add edx, 0x28c
sub ebx, 1
jne 0x1012b6d3
xor ebx, ebx
test ecx, ecx
je 0x1012b738
cmp byte [esp + 0x68], bl
mov ecx, 0x4000
mov eax, 0x1000
cmovne eax, ecx
mov dword [esp + 0x64], eax
nop
push dword [esp + 0x74]
push esi
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push edi
push ebx
push eax
push dword [ebp]
call fcn.1012d720
add esp, 0x20
mov dword [esp + 0x70], eax
test eax, eax
jne 0x1012b800
mov ecx, dword [esp + 0x48]
inc ebx
mov eax, dword [esp + 0x64]
add ebp, 4
cmp ebx, ecx
jb 0x1012b700
mov ebx, dword [esp + 0x68]
test bl, bl
je 0x1012b749
cmp ecx, 1
jbe 0x1012b804
mov eax, dword [esi + 0x604]
mov ebp, dword [esp + 0x10]
add eax, ebp
mov ebx, dword [esi + 0x4c0]
push eax
push edi
call fcn.10108c90
add esp, 8
mov dword [esp + 0x64], eax
test eax, eax
jne 0x1012b7f6
lea eax, [esp + 0x64]
push eax
push edi
call fcn.10108770
mov cl, al
add esp, 8
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x1012b7f6
mov byte [esi + 0xbec], cl
mov dword [esi + 0xc00], eax
test cl, cl
je 0x1012b7df
cmp cl, 3
je 0x1012b7ad
mov ebx, dword [esp + 0x68]
mov eax, 3
mov dword [esp + 0x70], eax
jmp 0x1012b808
lea eax, [esp + 0x64]
push eax
push edi
call fcn.10108b70
movzx ecx, ax
add esp, 8
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x1012b7f6
test ecx, ecx
jne 0x1012b7d9
mov ebx, dword [esp + 0x68]
mov eax, 3
mov dword [esp + 0x70], eax
jmp 0x1012b808
lea ebx, [ecx + 1]
lea ebx, [ecx + ebx*2]
lea eax, [esi + 0xbf4]
mov dword [esi + 0xbf8], ebx
push eax
push ebx
push edi
call fcn.101083a0
add esp, 0xc
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x70], eax
jmp 0x1012b808
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
call fcn.1012bb70
mov ecx, dword [esp + 0x74]
add esp, 4
test ecx, ecx
jne 0x1012b90e
cmp dword [esi + 0x5cc], 0
je 0x1012b8f7
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.1012bc60
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
test bl, bl
jne 0x1012b8de
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1012b8de
cmp dword [esi + 0x5e0], 0xffff
je 0x1012b882
mov byte [esp + 0x68], 1
cmp byte [esp + 0x78], bl
jne 0x1012b887
mov byte [esp + 0x68], 0
push dword [esp + 0x68]
lea ebx, [esi + 0x49c]
push dword [esi + 0x5c4]
push ebp
push edi
push eax
push ebx
call fcn.1012a960
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
cmp dword [esi + 0x5e0], 0xffff
jne 0x1012b8de
push dword [esi + 0x5c8]
lea eax, [esi + 0x90]
push ebp
push edi
push dword [esi + 0x14]
push ebx
push eax
call fcn.1012ac50
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x70], ecx
test ecx, ecx
jne 0x1012b90e
push dword [esp + 0x7c]
push esi
call fcn.1012bbc0
mov ecx, dword [esp + 0x78]
add esp, 8
mov dword [esi + 0x544], eax
jmp 0x1012b90e
mov ecx, 3
jmp 0x1012b90a
cmp byte [esp + 0x78], 0
je 0x1012b90e
mov ecx, 2
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1012b947
cmp dword [esp + 0x38], 0
mov esi, dword [eax + 0x1c]
je 0x1012b92e
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.10108c50
add esp, 8
push dword [esp + 0x34]
push esi
call fcn.1010a520
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