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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x68]
xor edx, edx
or dword [esp + 0x14], 0xffffffff
push ebx
push ebp
mov ecx, dword [eax + 0xf4]
mov eax, dword [eax]
push esi
push edi
mov dword [esp + 0x38], ecx
test byte [eax + 0x4c], 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], eax
jne 0x1012bb19
mov ebx, dword [esp + 0x7c]
imul ebp, dword [esp + 0x80], 0x48
mov dword [esp + 0x34], ebx
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [eax + ebp + 0x34]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + ebp + 0x1c]
cmp dword [ebx + 0x44], edx
jne 0x1012bb19
cmp dword [ecx + 0x44], edx
jne 0x1012bb19
mov eax, dword [ecx + 0x3c]
mov edi, dword [ecx + 0x20]
test eax, eax
je 0x1012ba8c
cmp dword [ebx + 0x3c], edx
jne 0x1012bb19
cmp dword [eax + 0x10], edx
jne 0x1012bb19
mov edx, dword [ebx + 4]
test edx, 0x100
je 0x1012ba9b
test eax, eax
jne 0x1012bb19
cmp dword [edi], 0
je 0x1012bb19
test byte [ecx + 4], 1
jne 0x1012bb19
mov esi, dword [esp + 0x84]
test eax, eax
je 0x1012bac3
mov ebp, dword [esp + 0x18]
cmp dword [ebp], 1
mov ebp, dword [esp + 0x1c]
jg 0x1012bb19
test esi, esi
jne 0x1012bb19
cmp dword [ebx + 0x30], 0
je 0x1012bacf
cmp dword [ecx + 0x30], 0
jne 0x1012bb19
test esi, esi
je 0x1012bad9
cmp dword [ecx + 0x30], 0
jne 0x1012bb19
test eax, eax
je 0x1012bae9
xor eax, eax
cmp dword [ebx + 0x24], eax
jne 0x1012bb19
test dl, 1
jne 0x1012bb19
test dword [ecx + 4], 0x2000
jne 0x1012bb19
mov eax, dword [esp + 0x18]
test byte [eax + ebp + 0x2c], 0x20
je 0x1012bb23
xor eax, eax
inc eax
mov dword [esp + 0x28], eax
cmp dword [edi], eax
jg 0x1012bb19
test esi, esi
jne 0x1012bb19
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x38], esi
jne 0x1012bb19
and edx, 1
je 0x1012bb28
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
and edx, 1
jmp 0x1012bb2c
mov eax, dword [esp + 0x18]
lea edi, [ecx + 0x34]
cmp dword [edi], 0
je 0x1012bb89
cmp dword [ecx + 0x30], 0
jne 0x1012bb19
test esi, esi
jne 0x1012bb19
test edx, edx
jne 0x1012bb19
cmp dword [eax], 1
jne 0x1012bb19
test byte [ecx + 4], 9
jne 0x1012bb19
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x1012bb59
cmp byte [ecx], 0x85
jne 0x1012bb19
mov eax, dword [ecx + 0x20]
cmp dword [eax], 1
jl 0x1012bb19
cmp dword [ecx + 0x44], esi
jne 0x1012bb19
mov ecx, edx
test ecx, ecx
jne 0x1012bb47
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x1012bb89
mov ecx, esi
cmp dword [edx], ecx
jle 0x1012bb89
lea eax, [edx + 0x14]
cmp word [eax], si
je 0x1012bb19
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x1012bb7c
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x78]
mov eax, dword [eax + ebp + 0x10]
mov dword [esi + 0xf4], eax
xor eax, eax
push eax
push eax
push eax
push 0x15
push esi
call fcn.1021b520
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xf4], eax
mov eax, dword [edi]
mov dword [esp + 0x20], eax
test eax, eax
je 0x1012bc2e
mov edi, dword [ebx + 0x30]
xor eax, eax
mov esi, dword [ebx + 0x3c]
mov ebp, dword [ebx + 0x34]
push eax
push ebx
push ecx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x3c], eax
call fcn.1015541c
add esp, 0xc
mov dword [ebx + 0x30], edi
mov edi, dword [esp + 0x18]
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x20], edi
mov byte [ebx], 0x85
test eax, eax
je 0x1012bc08
mov dword [eax + 0x34], ebp
test ebp, ebp
je 0x1012bc03
mov dword [ebp + 0x38], eax
mov dword [eax + 0x38], ebx
mov ebp, eax
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x34], ebp
cmp byte [ecx + 0x51], 0
jne 0x1012bef9
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1012bbc3
mov ebp, dword [esp + 0x1c]
jmp 0x1012bc32
mov edi, dword [esp + 0x18]
mov eax, dword [edi + ebp + 0x1c]
mov esi, eax
mov dword [esp + 0x40], eax
mov eax, dword [edi + ebp + 0xc]
mov dword [esp + 0x38], esi
test eax, eax
je 0x1012bc51
push eax
push ecx
call fcn.10141a5b
pop ecx
pop ecx
mov eax, dword [edi + ebp + 0x10]
test eax, eax
je 0x1012bc65
push eax
push dword [esp + 0x18]
call fcn.10141a5b
pop ecx
pop ecx
mov eax, dword [edi + ebp + 0x14]
test eax, eax
je 0x1012bc79
push eax
push dword [esp + 0x18]
call fcn.10141a5b
pop ecx
pop ecx
mov edx, dword [edi + ebp + 0x18]
xor ecx, ecx
mov dword [edi + ebp + 0xc], ecx
mov dword [edi + ebp + 0x10], ecx
mov dword [edi + ebp + 0x14], ecx
mov dword [edi + ebp + 0x1c], ecx
test edx, edx
je 0x1012bcc4
mov eax, dword [edx + 0x20]
cmp eax, 1
jne 0x1012bcbc
mov eax, dword [esp + 0x78]
mov ecx, eax
cmp dword [eax + 0x74], 0
cmovne ecx, dword [eax + 0x74]
mov eax, dword [ecx + 0x104]
mov dword [edx + 0x4c], eax
mov dword [ecx + 0x104], edx
xor ecx, ecx
jmp 0x1012bcc0
dec eax
mov dword [edx + 0x20], eax
mov dword [edi + ebp + 0x18], ecx
mov eax, dword [esi + 0x20]
mov ebp, dword [ebx + 0x20]
mov byte [esp + 0x13], cl
mov dword [esp + 0x2c], eax
mov edi, dword [eax]
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x1012bcf2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov al, byte [eax + ecx + 0x2c]
mov byte [esp + 0x13], al
jmp 0x1012bd15
push ecx
push ecx
push ecx
push dword [esp + 0x84]
call fcn.10155914
mov ebp, eax
mov dword [esp + 0x30], eax
add esp, 0x10
test ebp, ebp
je 0x1012becf
mov dword [ebx + 0x20], ebp
cmp edi, 1
jle 0x1012bd4d
mov eax, dword [esp + 0x80]
inc eax
push eax
lea eax, [edi - 1]
push eax
push ebp
push dword [esp + 0x84]
lfence
call fcn.10155dab
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x1012becf
mov dword [ebx + 0x20], ebp
jmp 0x1012bd51
test edi, edi
jle 0x1012bdb5
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
add ebx, 8
add eax, 8
mov dword [esp + 0x2c], edi
add eax, ebp
lfence
mov dword [esp + 0x24], eax
mov ebp, eax
push dword [ebp + 0x34]
push dword [esp + 0x18]
call fcn.1014a701
push 0x12
pop ecx
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x2c], eax
xor eax, eax
push 0x48
push eax
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
add ebp, 0x48
add ebx, 0x48
sub dword [esp + 0x2c], 1
jne 0x1012bd6e
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x13]
mov byte [ecx + ebp + 0x2c], al
xor ecx, ecx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1012bdf5
test dword [ebx + 4], 0x400000
jne 0x1012bdf5
mov edx, ecx
cmp dword [eax], ecx
jle 0x1012bdef
lea ecx, [eax + 0x14]
xor ebp, ebp
inc edx
mov word [ecx], bp
lea ecx, [ecx + 0x14]
cmp edx, dword [eax]
jl 0x1012bddc
mov ebp, dword [esp + 0x20]
xor ecx, ecx
mov dword [ebx + 0x30], eax
mov dword [esi + 0x30], ecx
cmp dword [esp + 0x28], 0
mov edx, dword [esi + 0x24]
mov dword [esi + 0x24], ecx
jbe 0x1012be0e
push dword [esp + 0x24]
push edx
call fcn.1015581f
pop ecx
pop ecx
test edx, edx
je 0x1012be35
cmp dword [ebx + 0x24], 0
je 0x1012be32
push dword [ebx + 0x24]
push edx
push 0x2c
push dword [esp + 0x84]
call fcn.1021b520
add esp, 0x10
mov dword [ebx + 0x24], eax
jmp 0x1012be35
mov dword [ebx + 0x24], edx
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x51], 0
jne 0x1012be77
mov eax, dword [esp + 0x78]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x54], eax
xor eax, eax
push eax
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.101693f6
add esp, 0xc
mov eax, dword [esi + 4]
and eax, 0x100
or dword [ebx + 4], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1012be91
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [esi + 0x3c], eax
test edi, edi
jle 0x1012beb6
mov edi, dword [esp + 0x1c]
add edi, 8
add edi, ebp
mov ebp, dword [esp + 0x30]
lfence
push edi
push ebx
call fcn.1021b520
pop ecx
add edi, 0x48
pop ecx
sub ebp, 1
jne 0x1012bea5
mov ebx, dword [ebx + 0x34]
mov esi, dword [esi + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
push 0
pop ecx
test ebx, ebx
jne 0x1012bcc4
push dword [esp + 0x78]
lea eax, [esp + 0x5c]
push eax
call fcn.1013adfd
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x60]
push esi
push eax
call fcn.10163f18
push esi
push dword [esp + 0x28]
call fcn.101553e2
add esp, 0x18
xor eax, eax
inc eax
jmp 0x1012bb1b