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

Disassembly:
push 0xffffffffffffffff
push 0x10050054
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x1006099c]
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x12c], eax
call fcn.10035273
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x140]
push eax
push ecx
xor esi, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x140], esi
call fcn.100353bc
test al, al
lea ecx, [esp + 0x40]
jne 0x10012f12
mov dword [esp + 0x138], 0xffffffff
call fcn.10035715
xor al, al
jmp 0x1001348d
push ebx
push ebp
push edi
push esi
push 0x100537ac
lea edx, [esp + 0x48]
push edx
call fcn.10034ce7
lea ecx, [esp + 0x48]
call fcn.1002d9e9
mov ebx, 0xf
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], esi
mov byte [esp + 0x94], 0
lea eax, [esp + 0x90]
push eax
push 0x10053b1c
lea ecx, [esp + 0x48]
mov byte [esp + 0x14c], 2
call fcn.100346dc
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x4c]
call fcn.1002e15f
push 0x100a1b08
push 0x10053b18
lea ecx, [esp + 0x48]
mov dword [0x100a1ae8], eax
call fcn.100347b7
mov edx, dword [0x100a1b08]
imul edx, edx, 0x3e8
push 0x100a1b04
push 0x10053b14
lea ecx, [esp + 0x48]
mov dword [0x100a1b08], edx
call fcn.100347b7
mov eax, dword [0x100a1b04]
imul eax, eax, 0x3e8
push 0x100a1b10
push 0x10053b10
lea ecx, [esp + 0x48]
mov dword [0x100a1b04], eax
call fcn.1003472d
push 0x100a1b14
push 0x10053b0c
lea ecx, [esp + 0x48]
call fcn.1003472d
lea ecx, [esp + 0x20]
call fcn.100114a0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
push esi
push 0x10053b08
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x150], 3
call fcn.10034e37
lea ecx, [esp + 0x10]
call fcn.100114a0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
push 0x1000b0b0
push 0x1000b4a0
push 7
push 0x10
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x158], 4
call fcn.100410c2
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], esi
mov byte [esp + 0x78], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
cmp edi, eax
mov byte [esp + 0x144], 8
mov dword [esp + 0x1c], edi
je 0x10013337
jmp 0x100130a0
mov edi, dword [esp + 0x1c]
jmp 0x100130a0
push 0x1c0
xor ebx, ebx
call fcn.10036500
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, esi
mov byte [esp + 0x144], 9
je 0x100130c8
mov ecx, eax
call fcn.10009e70
mov esi, eax
add edi, 8
push edi
push 0x10053b04
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x150], 8
mov dword [esp + 0x48], esi
call fcn.10034e37
mov eax, dword [esp + 0x14]
mov ebp, dword [eax]
cmp ebp, eax
je 0x1001314c
lea edx, [esp + 0x6c]
push edx
lea ecx, [ebp + 8]
push 0x10053afc
call fcn.1003472d
lea eax, [esp + 0x70]
push eax
push 0x10053af4
lea ecx, [ebp + 8]
call fcn.1003472d
lea ecx, [esp + 0x74]
push ecx
push 0x10053aec
lea ecx, [ebp + 8]
call fcn.100346dc
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esi + 0x50]
lea ebx, [ebx + edx + 0xc]
call fcn.1000a2c0
mov ebp, dword [ebp]
cmp ebp, dword [esp + 0x14]
jne 0x100130f5
push esi
push 0x10053ae8
mov ecx, edi
call fcn.1003472d
lea ecx, [esi + 0xc]
push ecx
push 0x100537f8
mov ecx, edi
call fcn.1003472d
lea edx, [esi + 0x14]
push edx
push 0x10053ae4
mov ecx, edi
call fcn.1003472d
lea eax, [esi + 0x34]
push eax
push 0x100537fc
mov ecx, edi
call fcn.1003472d
lea ecx, [esi + 0x20]
push ecx
push 0x10053ae0
mov ecx, edi
call fcn.1003472d
lea ebp, [esi + 0x70]
push ebp
push 0x10053adc
mov ecx, edi
call fcn.100346dc
lea edx, [esi + 0x6c]
push edx
push 0x10053ad8
mov ecx, edi
call fcn.1003472d
lea eax, [esi + 0x150]
push eax
push 0x10053acc
mov ecx, edi
call fcn.100346dc
lea ecx, [esi + 0x38]
push ecx
push 0x10053ac8
mov ecx, edi
call fcn.1003472d
lea edx, [esi + 0x3c]
push edx
push 0x10053ac4
mov ecx, edi
call fcn.1003472d
lea eax, [esi + 0x16c]
push eax
push 0x10053ac0
mov ecx, edi
call fcn.100346dc
lea ecx, [esi + 0x188]
push ecx
push 0x10053abc
mov ecx, edi
call fcn.100346dc
lea edx, [esi + 0xe0]
push edx
push 0x10053880
mov ecx, edi
call fcn.100346dc
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x8c]
push ebp
mov byte [esp + 0x150], 0xa
call fcn.10001e90
mov edi, dword [esi + 0x19c]
mov ebp, dword [esi + 0x1b8]
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0xbc]
mov edx, dword [esi + 0xd8]
add ebp, edi
add ebp, dword [esi + 0x180]
add ebp, dword [esi + 0xa0]
add ebp, dword [esi + 0x164]
add ebp, dword [esi + 0x148]
add ebp, dword [esi + 0x12c]
add ebp, dword [esi + 0xf4]
add ebp, dword [esi + 0x110]
add ebp, edx
add ebp, eax
add ebp, ecx
add ebx, ebp
add ebx, 0xc8
mov dword [esi + 8], ebx
mov eax, dword [esp + 0x30]
test eax, eax
mov edi, dword [esp + 0x34]
je 0x100132e3
mov edx, dword [esp + 0x38]
mov ecx, edi
sub ecx, eax
sub edx, eax
sar ecx, 2
sar edx, 2
cmp ecx, edx
jae 0x100132e3
mov eax, edi
add eax, 4
mov dword [edi], esi
mov dword [esp + 0x34], eax
jmp 0x100132f4
lea eax, [esp + 0x3c]
push eax
push 1
push edi
lea ecx, [esp + 0x38]
call fcn.1000b2c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x24]
xor esi, esi
cmp eax, ecx
mov byte [esp + 0x144], 8
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
mov dword [esp + 0x1c], eax
jne 0x10013093
mov ebx, 0xf
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x10061910
call fcn.1000a5a0
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x10013357
push eax
call fcn.10036530
add esp, 4
mov eax, dword [esp + 0x8c]
mov ebp, 0x10
cmp eax, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
jb 0x10013380
mov eax, dword [esp + 0x78]
push eax
call fcn.10036530
add esp, 4
push 0x1000b0b0
push 7
push ebp
lea ecx, [esp + 0xd4]
push ecx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], esi
mov byte [esp + 0x88], 0
mov byte [esp + 0x154], 4
call fcn.10041062
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x14]
cmp eax, ecx
mov dword [esp + 0x18], esi
je 0x100133e5
mov edi, edi
mov edi, dword [eax]
push eax
call fcn.10036530
mov ecx, dword [esp + 0x18]
add esp, 4
cmp edi, ecx
mov eax, edi
jne 0x100133d0
push ecx
call fcn.10036530
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], esi
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x28], esi
je 0x10013425
lea ecx, [ecx]
mov edi, dword [eax]
push eax
call fcn.10036530
mov ecx, dword [esp + 0x28]
add esp, 4
cmp edi, ecx
mov eax, edi
jne 0x10013410
push ecx
call fcn.10036530
mov eax, dword [esp + 0xac]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x24], esi
jb 0x1001344d
mov edx, dword [esp + 0x94]
push edx
call fcn.10036530
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], esi
mov byte [esp + 0x94], 0
mov byte [esp + 0x144], 0
call fcn.1002d9f2
lea ecx, [esp + 0x4c]
mov dword [esp + 0x144], 0xffffffff
call fcn.10035715
pop edi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
pop esi
call fcn.1003fd01
add esp, 0x138
ret 8