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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
mov edi, dword [esp + 0x58]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edi, [edi + edi*4]
mov dword [esp + 0x34], eax
mov ebx, dword [eax]
mov eax, dword [ebp + 0x20]
shl edi, 3
mov dword [esp + 0x38], edi
add edi, eax
push 0x170
push ebx
mov eax, dword [edi]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
call fcn.1006ea00
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
mov dword [edi + 0xc], esi
je 0x100af064
mov al, byte [edi + 0x12]
or al, 0x10
mov byte [edi + 0x12], al
mov dx, word [ebp + 0x16]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
push edx
push eax
push ecx
push esi
call fcn.100add90
mov edx, dword [esp + 0x38]
push 0x44
push edx
push esi
call fcn.100addd0
mov eax, dword [esp + 0x6c]
push esi
push eax
call fcn.100adf60
mov al, byte [ebx + 0x36]
add esp, 0x24
test al, al
jne 0x100af064
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
or eax, 0xffffffff
dec ebx
not ecx
not edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], ebx
js 0x100aee5a
jmp 0x100aeca1
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, eax
or ecx, edx
je 0x100aee52
mov al, byte [edi + 0x10]
test al, al
jne 0x100aedaa
mov edx, dword [esp + 0x18]
xor eax, eax
push 0x168
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.10069e80
mov esi, eax
add esp, 8
test esi, esi
je 0x100aee30
mov dl, byte [edi + 0x12]
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
or dl, 0x20
mov dword [edi + 0xc], esi
mov byte [edi + 0x12], dl
mov word [edi + 0x10], 0x200
mov ax, word [ebp + 0x16]
mov edx, dword [ebp]
push eax
push ecx
xor ebx, ebx
push edx
push esi
mov dword [esp + 0x58], ebx
call fcn.100add90
mov eax, dword [edi]
push 0x45
push eax
push esi
call fcn.100addd0
mov ecx, dword [esp + 0x6c]
push esi
push ecx
call fcn.100adf60
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x10], ebp
add esp, 0x24
mov al, byte [edx + 0x36]
test al, al
jne 0x100aed89
mov eax, dword [esi + 0x18]
mov ebp, dword [esi + 0x20]
test eax, eax
mov dword [esp + 0x20], ebx
jle 0x100aed89
mov eax, dword [ebp]
xor ecx, ecx
mov cl, byte [eax]
push ecx
call fcn.100ae770
add esp, 4
test eax, eax
je 0x100aed76
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.100adf00
or ebx, eax
mov eax, dword [esp + 0x50]
add esp, 8
or eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x18]
inc eax
add ebp, 0x28
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x100aed45
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
and ecx, ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x48]
and eax, ecx
mov dword [esp + 0x30], eax
jmp 0x100aee2c
test byte [edi + 0x12], 8
jne 0x100aee34
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.100adf00
mov esi, eax
mov al, byte [edi + 0x12]
add esp, 8
mov ebp, edx
test al, 2
je 0x100aedf5
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 0x14]
lea eax, [eax + ecx*8]
mov ecx, dword [eax + 8]
push ecx
push edx
call fcn.100adf00
add esp, 8
or esi, eax
or ebp, edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
and edx, esi
and ecx, ebp
cmp word [edi + 0x10], 2
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
je 0x100aee18
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x100aee28
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
and ecx, esi
and eax, ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
dec ebx
add edi, 0x28
test ebx, ebx
mov dword [esp + 0x24], ebx
jge 0x100aec9d
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
jmp 0x100aee5a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
mov dword [esi + 0x168], eax
or eax, edi
mov dword [esi + 0x16c], edi
jne 0x100aee72
xor eax, eax
jmp 0x100aee77
mov eax, 0x100
mov edi, dword [esp + 0x1c]
or ecx, edx
mov word [edi + 0x10], ax
je 0x100af064
xor ebx, ebx
or edi, 0xffffffff
mov dword [esp + 0x20], ebx
jmp 0x100aee9e
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
test ebx, ebx
jne 0x100aef92
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 0x20]
mov ebp, dword [eax + 0x18]
dec ebp
js 0x100af064
mov cl, byte [esi + 0x12]
mov eax, dword [esi + 8]
and cl, 0xbf
cmp eax, edi
mov byte [esi + 0x12], cl
je 0x100aeee7
mov edx, dword [esp + 0x14]
mov ecx, eax
push ecx
push edx
call fcn.100adf00
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
and eax, ecx
and edx, ebx
add esp, 8
or eax, edx
jne 0x100aeef5
dec ebp
add esi, 0x28
test ebp, ebp
jl 0x100af064
jmp 0x100aeeb7
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
test ebp, ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
jl 0x100af064
mov ebx, 1
test ebx, ebx
je 0x100aef70
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
cmp eax, edx
je 0x100aef26
mov al, byte [esi + 0x12]
and al, 0xbf
jmp 0x100aef65
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0xc]
cmp ecx, eax
je 0x100aef35
xor ebx, ebx
jmp 0x100aef68
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push edx
call fcn.100975b0
movsx edi, al
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
call fcn.100975b0
add esp, 8
test edi, edi
movsx eax, al
je 0x100aef60
cmp edi, eax
je 0x100aef60
xor ebx, ebx
jmp 0x100aef68
mov al, byte [esi + 0x12]
or al, 0x40
mov byte [esi + 0x12], al
dec ebp
add esi, 0x28
test ebp, ebp
jge 0x100aef10
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 2
mov dword [esp + 0x20], eax
jl 0x100aee92
test ebx, ebx
je 0x100af064
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 0x20]
xor edi, edi
xor eax, eax
dec ecx
js 0x100aefd5
lea ebx, [ecx + 1]
test byte [esi + 0x12], 0x40
je 0x100aefcf
mov edx, dword [esi]
mov ecx, dword [esp + 0x18]
push 0
mov eax, dword [edx + 0xc]
push eax
push ecx
call fcn.1009a590
mov edx, dword [ebp]
push eax
push edi
push edx
call fcn.10094c70
mov edi, eax
mov eax, dword [esi]
add esp, 0x18
mov eax, dword [eax + 8]
add esi, 0x28
dec ebx
jne 0x100aefa2
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call fcn.1009a590
mov ecx, dword [esp + 0x40]
push 0
push 0
push eax
push 0x48
push ecx
call fcn.10094950
mov esi, eax
add esp, 0x20
test esi, esi
je 0x100af050
mov edx, dword [esp + 0x28]
push edx
push esi
call fcn.100af070
push 3
push esi
push ebp
mov dword [esi + 0x10], edi
call fcn.100ade20
mov esi, eax
mov eax, dword [esp + 0x64]
push esi
push ebp
push eax
call fcn.100adf90
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x58]
lea edx, [esi + esi*4]
mov esi, dword [esp + 0x78]
add esp, 0x20
add ecx, eax
mov dword [eax + edx*8 + 4], esi
mov eax, ecx
pop edi
pop esi
mov byte [ecx + 0x13], 1
pop ebp
mov dword [esp + 0x10], ecx
mov word [eax + 0x10], 0x800
pop ebx
add esp, 0x3c
ret
push edi
push ebx
call fcn.1008c810
mov eax, dword [esp + 0x24]
add esp, 8
mov word [eax + 0x10], 0x800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret