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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
or eax, 0xffffffff
push edi
mov edi, dword [esp + 0xa4]
mov ebp, dword [edi]
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x1c]
xor esi, esi
test al, 2
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
je 0x10012b0a
mov dword [esp + 0x2c], 0xffffffff
jmp 0x10012b16
test al, 1
je 0x10012b1a
mov dword [esp + 0x2c], 0xffff
mov dword [esp + 0x30], esi
test edx, edx
mov eax, dword [esp + 0xb4]
mov dword [eax], esi
mov eax, dword [edi + 0x18]
mov dword [esp + 0x98], eax
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ecx
jg 0x10012b58
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x90
ret
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
push 0x2c
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x44]
push 0
push ecx
call fcn.10016580
mov edx, dword [esp + 0xa4]
or eax, 0xffffffff
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
movzx eax, byte [ebx]
push edx
push eax
mov dword [esp + 0x38], 0
call fcn.100148e0
add esp, 0x14
test eax, eax
je 0x10012cde
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
push ebx
call fcn.10014ac0
mov ecx, dword [esp + 0x5c]
mov eax, ecx
sub eax, dword [esp + 0x58]
add esp, 0x10
sub dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
je 0x10012bee
cmp eax, 0xf
jne 0x10012cc6
mov edx, dword [edi + 0x1c]
not edx
test dl, 4
je 0x10012cbb
sub ecx, ebx
lea edx, [ecx + esi]
cmp edx, dword [esp + 0xb0]
ja 0x10012fe1
cmp ebx, dword [esp + 0x4c]
jae 0x10012cb2
mov edx, dword [esp + 0xac]
mov edi, esi
imul edi, edi, 0xa8
mov eax, esi
shl eax, 6
add eax, edx
add edi, edx
add esi, ecx
mov dword [esp + 0x10], esi
jmp 0x10012c44
mov eax, dword [esp + 0x28]
cmp dword [esp + 0xa8], 0
mov esi, edi
jne 0x10012c52
mov esi, eax
push 0x40
add eax, 0x40
push 0
push esi
add edi, 0xa8
mov dword [esp + 0x34], eax
call fcn.10016580
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
and edx, dword [esp + 0x44]
mov word [esi + 0xa], 0xffff
mov al, byte [ebx]
and ecx, ebp
add esp, 0xc
add ebx, 1
add ebp, 1
adc dword [esp + 0x38], 0
cmp ebx, dword [esp + 0x4c]
mov byte [esi + 0x30], al
mov byte [esi + 8], 1
mov dword [esi], ecx
mov dword [esi + 4], edx
jb 0x10012c40
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0xa4]
mov ecx, dword [esp + 0xb4]
mov dword [ecx], esi
cmp dword [esp + 0x14], 0
je 0x10012b37
add ebx, eax
add dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
adc dword [esp + 0x20], 0
cmp eax, 0xf
je 0x10012fc6
cmp dword [esp + 0x98], 2
jne 0x10012d3b
test dword [esp + 0x40], 0x2000000
je 0x10012d1a
add ebx, 0xffffffff
cmp dword [esp + 0x54], ebx
je 0x10012d1a
and dword [esp + 0x40], 0xfdffffff
lea edx, [esp + 0x40]
push 0
push edx
mov dword [esp + 0x60], 0
call fcn.100149f0
add esp, 8
test dword [esp + 0x40], 0x780
je 0x10012d3b
and dword [esp + 0x40], 0xfffff87f
lea eax, [esp + 0x40]
push 2
push eax
call fcn.100149f0
add esp, 8
lea eax, [esi + 1]
cmp eax, dword [esp + 0xb0]
ja 0x10012fe1
cmp dword [esp + 0xa8], 0
je 0x10012d5d
imul esi, esi, 0xa8
jmp 0x10012d60
shl esi, 6
add esi, dword [esp + 0xac]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
mov edi, esi
push eax
lea ebx, [esp + 0x84]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
call fcn.10012630
mov ecx, dword [esp + 0xa8]
add esp, 4
test byte [ecx + 0x1c], 4
mov dword [esp + 0x28], eax
je 0x10012db6
test byte [edi + 0x3a], 7
jne 0x10012db6
mov dword [esp + 0x28], 4
mov ecx, dword [esp + 0x30]
and dword [edi + 0x2c], ecx
mov eax, dword [esp + 0x2c]
and dword [edi + 0x28], eax
mov esi, ecx
mov cl, byte [edi + 8]
and esi, dword [esp + 0x38]
movzx ebx, cl
sub dword [esp + 0x14], ebx
mov edx, eax
and edx, ebp
mov dword [edi], edx
mov eax, ebx
cdq
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 4], esi
adc dword [esp + 0x20], edx
mov edx, dword [esp + 0x28]
add dword [esp + 0x18], ebx
add cl, al
cmp edx, 3
mov byte [edi + 8], cl
jne 0x10012ee9
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx + 0x1c]
not ecx
test cl, 4
je 0x10012ef3
mov esi, dword [esp + 0x10]
sub esi, 1
lea ecx, [eax + 1]
test ecx, ecx
mov dword [esp + 0x10], esi
jbe 0x10012ef3
lea eax, [eax + esi + 1]
cmp eax, dword [esp + 0xb0]
ja 0x10012fe1
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
add ecx, 1
cmp ebx, ecx
mov dword [esp + 0x3c], ecx
jae 0x10012ef3
mov edx, dword [esp + 0xac]
mov eax, esi
imul esi, esi, 0xa8
shl eax, 6
sub ecx, ebx
add eax, edx
add esi, edx
add dword [esp + 0x10], ecx
jmp 0x10012e84
mov eax, dword [esp + 0x24]
cmp dword [esp + 0xa8], 0
mov edi, esi
jne 0x10012e92
mov edi, eax
push 0x40
add eax, 0x40
push 0
push edi
add esi, 0xa8
mov dword [esp + 0x30], eax
call fcn.10016580
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov word [edi + 0xa], 0xffff
mov cl, byte [ebx]
mov byte [edi + 0x30], cl
mov ecx, dword [esp + 0x3c]
and ecx, eax
and edx, ebp
add esp, 0xc
add ebx, 1
add ebp, 1
adc eax, 0
cmp ebx, dword [esp + 0x3c]
mov byte [edi + 8], 1
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [esp + 0x38], eax
jb 0x10012e80
mov edx, dword [esp + 0x28]
jmp 0x10012ef3
cmp edx, 4
jne 0x10012ef3
sub dword [esp + 0x10], 1
cmp edx, 1
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xa4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
jne 0x10012fb7
mov eax, dword [eax + 0x1c]
test eax, 0x3f8
je 0x10012fb7
test al, 8
je 0x10012f3f
mov dl, byte [edi + 0x3a]
and dl, 7
cmp dl, 1
je 0x10012b37
test al, 0x10
je 0x10012f52
mov cl, byte [edi + 0x3a]
and cl, 7
cmp cl, 2
je 0x10012b37
test al, 0x20
je 0x10012f65
mov dl, byte [edi + 0x3a]
and dl, 7
cmp dl, 3
je 0x10012b37
test al, 0x40
je 0x10012f78
mov cl, byte [edi + 0x3a]
and cl, 7
cmp cl, 4
je 0x10012b37
test al, al
jns 0x10012f8b
mov dl, byte [edi + 0x3a]
and dl, 7
cmp dl, 5
je 0x10012b37
test eax, 0x100
je 0x10012fa1
mov cl, byte [edi + 0x3a]
and cl, 7
cmp cl, 6
je 0x10012b37
test eax, 0x200
je 0x10012fb7
mov dl, byte [edi + 0x3a]
and dl, 7
cmp dl, 7
je 0x10012b37
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0xa4]
cmp dword [esp + 0x14], 0
jg 0x10012b50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x90
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x90
ret