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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x7c], esp
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x84], 0x10128ca0
mov ebx, ecx
lea eax, [esi + 0x80]
mov ecx, dword fs:[0]
mov dword [esi + 0x80], ecx
mov dword fs:[0], eax
mov eax, dword [0x1027032c]
mov dword [esi + 0x5c], edx
mov eax, dword [eax]
mov dword [esi], ebx
test eax, eax
je 0x101273cb
lea eax, [esi + 0x40]
mov dword [esi + 0x40], 2
mov dword [esi + 0x50], 0
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x4c]
mov ecx, dword [esi + 0x5c]
add ecx, eax
jo 0x1012719d
mov eax, ecx
mov dword [ebx + 0x4c], ecx
lea ecx, [ebx + 0x14]
mov dword [esi + 0x70], ecx
test eax, eax
jg 0x101271bb
jmp 0x101272fe
mov eax, dword [ebx + 0x4c]
test eax, eax
jle 0x101272fe
mov dword [esi + 0x88], 1
push dword [ebp + 8]
push dword [esi + 0x70]
lea eax, [esi + 8]
push eax
call fcn.101244e0
add esp, 0xc
mov eax, dword [esi + 8]
test eax, eax
je 0x1012734e
mov ecx, dword [esi + 0x10]
movsd xmm0, qword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 0x20], edx
mov dword [esi + 0x68], ecx
movsd qword [esi + 0x60], xmm0
mov dword [esi + 0x24], ecx
cmp dword [eax + 0x38], edx
jbe 0x101274a8
mov eax, dword [eax + 0x34]
imul edx, edx, 0xf0
mov edi, dword [eax + edx]
xor edi, 3
or edi, dword [eax + edx + 4]
je 0x101274a8
add eax, edx
cmp dword [eax + 0xcc], ecx
jne 0x101274a8
movzx edx, byte [eax + 0x20]
mov ebx, dword [esi]
mov edi, 6
add dl, 0xfa
movzx ecx, dl
cmp dl, 6
cmovae ecx, edi
cmp cl, 5
je 0x10127260
movzx ecx, cl
cmp ecx, 3
jne 0x10127266
cmp byte [eax + 0x21], 0
je 0x10127266
jmp 0x10127273
cmp byte [eax + 0x21], 1
je 0x10127273
cmp dword [eax + 0xd8], 0
je 0x101271b0
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
cmp dword [ecx + 0x38], edx
jbe 0x101274ea
mov ecx, dword [ecx + 0x34]
imul edx, edx, 0xf0
mov edi, dword [ecx + edx]
xor edi, 3
or edi, dword [ecx + edx + 4]
je 0x101274ea
add ecx, edx
cmp dword [ecx + 0xcc], eax
jne 0x101274ea
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x74], eax
lea eax, [esi + 0x60]
push eax
push ebx
call fcn.101275d0
add esp, 8
xor eax, eax
cmp dword [esi + 0x74], 0x3b9aca00
mov ecx, dword [esi + 0x68]
movsd xmm0, qword [esi + 0x60]
setne al
mov dword [esi + 0x10], ecx
movsd qword [esi + 8], xmm0
push eax
lea eax, [esi + 8]
push eax
push dword [ebp + 0xc]
call fcn.101298c0
add esp, 0xc
mov ebx, dword [esi]
mov eax, dword [ebx + 0x4c]
test eax, eax
jg 0x101271bb
cmp dword [esi + 0x40], 2
je 0x101273b7
lea eax, [esi + 0x38]
mov dword [esi + 0x88], 0
push eax
push dword [esi + 4]
call fcn.10148340
add esp, 8
mov eax, dword [esi + 0x40]
cmp eax, 2
je 0x101273b7
mov ecx, dword [esi + 0x3c]
mov dword [esi], eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x88], 3
push ecx
push eax
push dword [esi + 4]
call fcn.10148370
add esp, 0xc
jmp 0x10127394
cmp dword [esi + 0x40], 2
je 0x101273b7
lea eax, [esi + 0x38]
mov dword [esi + 0x88], 0
push eax
push dword [esi + 4]
call fcn.10148340
add esp, 8
mov eax, dword [esi + 0x40]
cmp eax, 2
je 0x101273b7
mov ecx, dword [esi + 0x3c]
mov dword [esi], eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x88], 2
push ecx
push eax
push dword [esi + 4]
call fcn.10148370
add esp, 0xc
cmp dword [esi], 0
je 0x101273b7
mov eax, dword [esi + 0x44]
lock dec dword [eax]
jne 0x101273b7
lea eax, [esi + 0x44]
mov dword [esi + 0x88], 0xffffffff
push eax
call fcn.100067e0
add esp, 4
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x1026fb50]
movzx ecx, al
lea edx, [ecx - 1]
cmp edx, 2
jae 0x10127486
movzx eax, al
push eax
push dword [0x1026fb48]
call fcn.10147240
add esp, 8
test al, al
je 0x1012717a
mov eax, dword [0x1026fb48]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x1012752c
mov edi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edx
lea edx, [esi + 8]
lea edi, [esi + 0x2c]
movlps qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edx
lea edx, [esi + 0x5c]
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
lea edi, [esi + 0x38]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], 0x101f2c48
push ecx
push eax
push edi
call fcn.10146f30
add esp, 0xc
cmp dword [esi + 0x40], 2
lea eax, [esi + 0x40]
mov dword [esi + 4], eax
je 0x1012718e
mov dword [esi + 0x88], 0
push edi
push eax
call fcn.10148310
mov ebx, dword [esi]
add esp, 8
jmp 0x1012718e
test ecx, ecx
je 0x1012717a
push 0x1026fb48
call fcn.101c84c0
add esp, 4
test al, al
jne 0x101273e1
jmp 0x1012717a
lea eax, [esi + 0x24]
mov dword [esi + 8], 0x101f1d2c
mov dword [esi + 0xc], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x2c]
mov dword [esi + 0x30], 0x101253b0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
push 0x101f1d34
lea eax, [esi + 8]
push eax
call fcn.101cb880
add esp, 8
jmp 0x1012752a
lea eax, [esi + 0x24]
mov dword [esi + 8], 0x101f1d2c
mov dword [esi + 0xc], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x2c]
mov dword [esi + 0x30], 0x101253b0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
push 0x101f1d34
lea eax, [esi + 8]
push eax
call fcn.101cb880
add esp, 8
ud2
push 0x101f2c98
push 0x22
push 0x101f2b9c
call fcn.101cb830
nop dword [eax]
push ebp
sub esp, 0xc
lea esi, [ebp - 0x8c]
mov ebp, dword [esi + 0x78]
lea ecx, [esi + 0x38]
call fcn.100a41f0
add esp, 0xc
pop ebp
ret