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

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push edi
push ebx
call fcn.1014a41d
mov edi, dword [esp + 0x3c]
mov ebp, eax
mov eax, dword [ebx + 0x28]
dec eax
dec dword [ebx + 0x38]
pop ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0xc], eax
test ecx, ecx
jns 0x1012b2e3
push eax
movzx eax, byte [edi + 0x18]
push eax
push 0x2f
push ebp
call fcn.101596d3
add esp, 0x10
mov edx, dword [esp + 0x3c]
xor eax, eax
push esi
mov esi, dword [edi + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
test esi, esi
jle 0x1012b33e
mov esi, dword [esp + 0x10]
movzx eax, word [edx + eax*4]
push eax
push dword [edi]
call fcn.10156821
mov ecx, dword [esp + 0x4c]
cwde
inc ecx
push esi
add eax, ecx
push eax
push 0x32
push ebp
call fcn.101596d3
mov eax, dword [esp + 0x38]
add esp, 0x18
mov ebx, dword [edi + 0x14]
inc eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
cmp eax, ebx
jl 0x1012b2fd
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x4c], 0
jne 0x1012b5a1
cmp dword [esp + 0x38], 0
jne 0x1012b425
push ebx
call fcn.10149be5
pop ecx
movzx ecx, word [edx]
mov esi, eax
push esi
push ecx
push dword [edi]
mov dword [esp + 0x38], esi
call fcn.10156821
pop ecx
pop ecx
movsx ecx, ax
mov eax, dword [esp + 0x48]
inc eax
add ecx, eax
push ecx
push 0x4e
push ebp
call fcn.101596d3
push 0
push esi
push 0xf
push ebp
call fcn.101596d3
mov dword [esp + 0x5c], eax
add esp, 0x20
mov eax, dword [esp + 0x34]
cmp eax, dword [edi]
jne 0x1012b3c6
cmp dword [esp + 0x48], 1
jne 0x1012b3c6
push esi
push dword [esp + 0x14]
push dword [esp + 0x4c]
push 0x35
push ebp
call fcn.1021b520
push 0x90
push ebp
call fcn.10159a50
mov eax, dword [esp + 0x50]
add esp, 0x1c
mov esi, dword [esp + 0x14]
push 0x60
push eax
push dword [esp + 0x38]
push esi
push ebx
call fcn.1021b520
push dword [esp + 0x40]
push 0
push esi
push 0x20
push ebp
call fcn.1021b520
push dword [esp + 0x38]
push ebp
call fcn.1015fce3
mov esi, dword [ebp + 0x6c]
lea eax, [esi - 2]
push eax
push ebp
call fcn.1015fcbe
push dword [esp + 0x74]
push ebp
mov dword [eax + 8], esi
call fcn.1015fcbe
mov ecx, dword [ebp + 0x6c]
add esp, 0x40
mov dword [eax + 8], ecx
push dword [esp + 0x2c]
push ebx
call fcn.10152995
pop ecx
pop ecx
jmp 0x1012b5a1
push esi
push ebx
call fcn.10149ba4
push ebx
mov dword [esp + 0x2c], eax
call fcn.10149be5
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
push dword [ecx + 0x2c]
push dword [esp + 0x28]
push 0x60
push ebp
call fcn.1021b520
push dword [esp + 0x58]
push ebx
call fcn.1016209c
and dword [esp + 0x74], 0
add esp, 0x28
test esi, esi
jle 0x1012b4a4
mov ebx, dword [esp + 0x4c]
lfence
mov eax, dword [esp + 0x20]
add eax, ebx
push eax
mov eax, dword [esp + 0x44]
movzx eax, word [eax + ebx*4]
push eax
push dword [edi]
call fcn.10156821
pop ecx
pop ecx
mov ecx, dword [esp + 0x48]
cwde
inc ecx
add eax, ecx
push eax
push 0x4d
push ebp
call fcn.101596d3
add esp, 0x10
inc ebx
cmp ebx, esi
jl 0x1012b46e
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
cmp eax, dword [edi]
jne 0x1012b553
cmp dword [esp + 0x48], 1
jne 0x1012b553
mov eax, dword [ebp + 0x6c]
xor ecx, ecx
inc eax
mov dword [esp + 0x4c], ecx
add eax, esi
mov dword [esp + 0x24], eax
test esi, esi
jle 0x1012b547
mov ebx, dword [esp + 0x38]
lfence
mov eax, dword [esp + 0x40]
movzx eax, word [eax + ecx*4]
push eax
push dword [edi]
call fcn.10156821
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
inc edi
cwde
add edi, eax
mov eax, dword [ebx + 4]
movzx esi, word [eax + ecx*2]
push esi
push dword [ebx + 0xc]
call fcn.10156821
mov edx, dword [esp + 0x44]
cwde
inc eax
add eax, dword [esp + 0x54]
cmp si, word [edx + 0x28]
cmove eax, dword [esp + 0x54]
push eax
push dword [esp + 0x38]
push edi
push 0x34
push ebp
call fcn.1021b520
push 0x10
push ebp
call fcn.10159a50
mov ecx, dword [esp + 0x78]
add esp, 0x2c
mov esi, dword [esp + 0x18]
inc ecx
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
cmp ecx, esi
jl 0x1012b4d6
mov ebx, dword [esp + 0x2c]
push dword [esp + 0x10]
push ebp
call fcn.1015fce3
pop ecx
pop ecx
push esi
push dword [esp + 0x3c]
push dword [ebx]
call fcn.1014a881
pop ecx
pop ecx
push eax
push dword [esp + 0x24]
push esi
push dword [esp + 0x30]
push 0x5b
push ebp
call fcn.1021b520
push 0
push dword [esp + 0x3c]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push 0x1e
push ebp
call fcn.1021b520
push dword [esp + 0x50]
push ebx
call fcn.10152995
push esi
push dword [esp + 0x60]
push ebx
call fcn.1021b520
add esp, 0x48
mov cl, byte [edi + 0x18]
pop esi
test cl, cl
jne 0x1012b5da
mov eax, dword [ebx]
xor edx, edx
mov eax, dword [eax + 0x20]
and eax, 0x80000
or eax, edx
jne 0x1012b5da
cmp dword [ebx + 0x74], edx
jne 0x1012b5da
cmp byte [ebx + 0x14], dl
jne 0x1012b5da
push 4
push 0xffffffffffffffff
push edx
push 2
push 0x313
push ebx
call fcn.1021b520
add esp, 0x18
jmp 0x1012b60a
mov edx, dword [esp + 0x44]
mov al, cl
test edx, edx
jle 0x1012b5f7
test cl, cl
jne 0x1012b5f7
mov eax, dword [ebx + 0x74]
test eax, eax
cmovne ebx, eax
mov byte [ebx + 0x15], 1
mov al, byte [edi + 0x18]
push edx
movzx eax, al
push eax
push 0x97
push ebp
call fcn.101596d3
add esp, 0x10
push dword [esp + 0xc]
push ebp
call fcn.10161d60
push dword [esp + 0x18]
push 0x74
push ebp
call fcn.101596ba
add esp, 0x14
pop edi
pop ebp
pop ebx
add esp, 0x18
ret