Function at 0x1009677d
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 0x100967c8
mov eax, dword [esp + 0x34]
cmp ebp, eax
je 0x100967c8
sub eax, ebp
cmp eax, 4
jb 0x10096aae
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x28], ebp
jmp 0x100967df
test esi, esi
je 0x10096ad7
test byte [esi + 4], 1
je 0x10096aae
mov eax, 0xfd
mov dword [esp + 0x14], eax
cmp eax, 0xff
jbe 0x100967f4
mov eax, 0xfffffc15
jmp 0x10096adc
push eax
call fcn.100cb4e5
mov byte [esp + 0x38], al
test esi, esi
je 0x1009682e
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 0x10096828
cmp eax, 0xfe
jne 0x10096834
or dword [edi + 0x1c], 0x20
jmp 0x10096834
mov eax, dword [esp + 0x14]
mov ecx, ebx
test eax, eax
jne 0x1009684b
test esi, esi
je 0x10096907
mov dword [ecx], 1
jmp 0x10096907
cmp eax, 0xfd
jne 0x10096914
test esi, esi
je 0x10096907
test byte [esi + 4], 1
jne 0x10096883
push ebx
push ebx
push ebx
push 0xffffdfab
push ebx
push ebx
push dword [esi + 8]
push dword [edi + 0x28]
call fcn.10037730
mov eax, 0xfffff3f4
jmp 0x10096adc
mov ebp, dword [esi]
lea eax, [ebp + 4]
push eax
push dword [esi + 0xc]
push edi
call fcn.100918f4
test eax, eax
js 0x10096adc
mov eax, dword [ebp + 4]
and eax, 0x7fff
cmp eax, 8
je 0x100968ac
cmp eax, 0xc
jne 0x10096903
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 0x100968d6
push ecx
push 1
push esi
push edi
call fcn.100c9d55
jmp 0x100968e3
cmp dword [ebp + 0x28], esi
jae 0x100968f5
push esi
push ecx
push edi
call fcn.100c9e40
test eax, eax
js 0x10096adc
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.10115d80
mov dword [ebp + 0x24], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [eax], ebp
xor eax, eax
jmp 0x10096adc
test esi, esi
je 0x1009699e
push dword [edi + 0x28]
call fcn.10037640
mov cl, byte [esp + 0x13]
test cl, cl
je 0x10096978
imul eax, eax, 0x68
cmp dword [eax + 0x10176a40], ebx
ja 0x10096978
mov al, byte [esp + 0x38]
cmp cl, al
je 0x1009696c
mov eax, dword [esp + 0x14]
push ebx
push eax
movzx eax, cl
movzx eax, byte [eax + 0x1000c76c]
push eax
push 0xffffe041
push ebx
push ebx
push dword [esi + 8]
push dword [edi + 0x28]
call fcn.10037730
mov eax, 0xfffff427
jmp 0x10096adc
mov ecx, dword [esp + 0x1c]
or dword [ecx], 0x8000
jmp 0x1009698e
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 0x100969d0
cmp eax, 0xa
jbe 0x100969c8
cmp eax, 0xc
jbe 0x100969b2
cmp eax, 0x11
jne 0x100969d0
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 0x100969e2
mov edx, dword [ebp]
add ebp, 4
jmp 0x100969dc
push eax
call fcn.1003a8b0
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 0x100969fa
test cl, 1
jne 0x10096962
sub dword [esp + 0x34], ebp
cmp dword [esp + 0x34], edx
jb 0x10096aae
test esi, esi
je 0x10096a9f
cmp byte [esp + 0x38], 8
je 0x10096a3d
cmp byte [esp + 0x38], 0xc
je 0x10096a3d
cmp byte [esp + 0x38], 0xe
je 0x10096a3d
cmp eax, 0xff
je 0x10096a9f
mov eax, dword [esp + 0x1c]
push eax
push edx
push ebp
push dword [edi + 0x2c]
call fcn.1009717e
jmp 0x10096a9b
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 0x10096a5f
push esi
push 1
push ecx
push edi
mov dword [eax + 0x28], ecx
call fcn.100c9d55
jmp 0x10096a6f
cmp dword [eax + 0x28], ecx
jae 0x10096a75
push ecx
push esi
push edi
mov dword [eax + 0x28], ecx
call fcn.100c9e40
mov ecx, dword [esp + 0x18]
mov ebx, eax
test ebx, ebx
jns 0x10096a7d
mov eax, ebx
jmp 0x10096adc
test ecx, ecx
je 0x10096a94
push ecx
push dword [esp + 0x2c]
push dword [esi]
call fcn.10117410
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 0x10096907
test esi, esi
je 0x10096ad7
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.10037730
mov eax, 0xfffff43e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10