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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov ebp, dword [ebp]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x13], bl
test ebp, ebp
je 0x100969c8
mov eax, dword [esp + 0x34]
cmp ebp, eax
je 0x100969c8
sub eax, ebp
cmp eax, 4
jb 0x10096cae
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x28], ebp
jmp 0x100969df
test esi, esi
je 0x10096cd7
test byte [esi + 4], 1
je 0x10096cae
mov eax, 0xfd
mov dword [esp + 0x14], eax
cmp eax, 0xff
jbe 0x100969f4
mov eax, 0xfffffc15
jmp 0x10096cdc
push eax
call fcn.100cb6e5
mov byte [esp + 0x38], al
test esi, esi
je 0x10096a2e
mov eax, dword [esi]
mov dword [esp + 0x20], eax
mov cl, byte [eax + 0x18]
mov byte [esp + 0x13], cl
lea ecx, [eax + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
cmp eax, 0xff
je 0x10096a28
cmp eax, 0xfe
jne 0x10096a34
or dword [edi + 0x1c], 0x20
jmp 0x10096a34
mov eax, dword [esp + 0x14]
mov ecx, ebx
test eax, eax
jne 0x10096a4b
test esi, esi
je 0x10096b07
mov dword [ecx], 1
jmp 0x10096b07
cmp eax, 0xfd
jne 0x10096b14
test esi, esi
je 0x10096b07
test byte [esi + 4], 1
jne 0x10096a83
push ebx
push ebx
push ebx
push 0xffffdfab
push ebx
push ebx
push dword [esi + 8]
push dword [edi + 0x28]
call fcn.100377a0
mov eax, 0xfffff3f4
jmp 0x10096cdc
mov ebp, dword [esi]
lea eax, [ebp + 4]
push eax
push dword [esi + 0xc]
push edi
call fcn.10091af4
test eax, eax
js 0x10096cdc
mov eax, dword [ebp + 4]
and eax, 0x7fff
cmp eax, 8
je 0x10096aac
cmp eax, 0xc
jne 0x10096b03
mov eax, dword [edi + 0x78]
test eax, eax
push dword [ebp + 0x10]
cmovne edi, eax
call sub.OLEAUT32.dll_SysAllocStringByteLen
lea ecx, [ebp + 0x2c]
mov dword [esp + 0x34], eax
lea esi, [eax + 1]
cmp dword [ecx], ebx
jne 0x10096ad6
push ecx
push 1
push esi
push edi
call fcn.100c9f55
jmp 0x10096ae3
cmp dword [ebp + 0x28], esi
jae 0x10096af5
push esi
push ecx
push edi
call fcn.100ca040
test eax, eax
js 0x10096cdc
mov eax, dword [esp + 0x34]
lea ecx, [ebp + 0x2c]
mov dword [ebp + 0x28], eax
push esi
push dword [ecx]
push dword [ebp + 0x10]
call fcn.10115f30
mov dword [ebp + 0x24], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [eax], ebp
xor eax, eax
jmp 0x10096cdc
test esi, esi
je 0x10096b9e
push dword [edi + 0x28]
call fcn.100376b0
mov cl, byte [esp + 0x13]
test cl, cl
je 0x10096b78
imul eax, eax, 0x68
cmp dword [eax + 0x10176a40], ebx
ja 0x10096b78
mov al, byte [esp + 0x38]
cmp cl, al
je 0x10096b6c
mov eax, dword [esp + 0x14]
push ebx
push eax
movzx eax, cl
movzx eax, byte [eax + 0x1000c77c]
push eax
push 0xffffe041
push ebx
push ebx
push dword [esi + 8]
push dword [edi + 0x28]
call fcn.100377a0
mov eax, 0xfffff427
jmp 0x10096cdc
mov ecx, dword [esp + 0x1c]
or dword [ecx], 0x8000
jmp 0x10096b8e
mov ecx, dword [esp + 0x1c]
mov edx, 0xffff7fff
mov eax, dword [esp + 0x20]
and dword [ecx], edx
and dword [eax + 0x18], edx
mov al, byte [esp + 0x38]
movzx eax, al
xor eax, dword [ecx]
and eax, 0x7fff
xor dword [ecx], eax
mov eax, dword [esp + 0x14]
cmp eax, 9
jb 0x10096bd0
cmp eax, 0xa
jbe 0x10096bc8
cmp eax, 0xc
jbe 0x10096bb2
cmp eax, 0x11
jne 0x10096bd0
mov ecx, dword [ebp]
add ebp, 4
push 4
pop edx
mov esi, dword [ebp]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x3c]
jmp 0x10096be2
mov edx, dword [ebp]
add ebp, 4
jmp 0x10096bdc
push eax
call fcn.1003a920
mov edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebp
mov ecx, edx
cmp byte [esp + 0x38], 8
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], ecx
jne 0x10096bfa
test cl, 1
jne 0x10096b62
sub dword [esp + 0x34], ebp
cmp dword [esp + 0x34], edx
jb 0x10096cae
test esi, esi
je 0x10096c9f
cmp byte [esp + 0x38], 8
je 0x10096c3d
cmp byte [esp + 0x38], 0xc
je 0x10096c3d
cmp byte [esp + 0x38], 0xe
je 0x10096c3d
cmp eax, 0xff
je 0x10096c9f
mov eax, dword [esp + 0x1c]
push eax
push edx
push ebp
push dword [edi + 0x2c]
call fcn.1009737e
jmp 0x10096c9b
mov eax, dword [edi + 0x78]
test eax, eax
cmovne edi, eax
mov eax, dword [esp + 0x20]
lea esi, [eax + 0x2c]
cmp dword [esi], ebx
jne 0x10096c5f
push esi
push 1
push ecx
push edi
mov dword [eax + 0x28], ecx
call fcn.100c9f55
jmp 0x10096c6f
cmp dword [eax + 0x28], ecx
jae 0x10096c75
push ecx
push esi
push edi
mov dword [eax + 0x28], ecx
call fcn.100ca040
mov ecx, dword [esp + 0x18]
mov ebx, eax
test ebx, ebx
jns 0x10096c7d
mov eax, ebx
jmp 0x10096cdc
test ecx, ecx
je 0x10096c94
push ecx
push dword [esp + 0x2c]
push dword [esi]
call fcn.101175c0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [eax + 0x24], ecx
mov edx, dword [esp + 0x24]
lea eax, [edx + 3]
shr eax, 2
lea ebp, [ebp + eax*4]
jmp 0x10096b07
test esi, esi
je 0x10096cd7
push ebx
push 0x18
pop ecx
mov eax, esi
sub eax, dword [edi + 0x7c]
cdq
idiv ecx
push eax
push dword [edi + 0x80]
push 0xffffe050
push ebx
push ebx
push dword [esi + 8]
push dword [edi + 0x28]
call fcn.100377a0
mov eax, 0xfffff43e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10