Function at 0x1009735d
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 0x100973a8
mov eax, dword [esp + 0x34]
cmp ebp, eax
je 0x100973a8
sub eax, ebp
cmp eax, 4
jb 0x1009768e
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x28], ebp
jmp 0x100973bf
test esi, esi
je 0x100976b7
test byte [esi + 4], 1
je 0x1009768e
mov eax, 0xfd
mov dword [esp + 0x14], eax
cmp eax, 0xff
jbe 0x100973d4
mov eax, 0xfffffc15
jmp 0x100976bc
push eax
call fcn.100cc1d6
mov byte [esp + 0x38], al
test esi, esi
je 0x1009740e
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 0x10097408
cmp eax, 0xfe
jne 0x10097414
or dword [edi + 0x1c], 0x20
jmp 0x10097414
mov eax, dword [esp + 0x14]
mov ecx, ebx
test eax, eax
jne 0x1009742b
test esi, esi
je 0x100974e7
mov dword [ecx], 1
jmp 0x100974e7
cmp eax, 0xfd
jne 0x100974f4
test esi, esi
je 0x100974e7
test byte [esi + 4], 1
jne 0x10097463
push ebx
push ebx
push ebx
push 0xffffdfab
push ebx
push ebx
push dword [esi + 8]
push dword [edi + 0x28]
call fcn.100378e0
mov eax, 0xfffff3f4
jmp 0x100976bc
mov ebp, dword [esi]
lea eax, [ebp + 4]
push eax
push dword [esi + 0xc]
push edi
call fcn.100924d4
test eax, eax
js 0x100976bc
mov eax, dword [ebp + 4]
and eax, 0x7fff
cmp eax, 8
je 0x1009748c
cmp eax, 0xc
jne 0x100974e3
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 0x100974b6
push ecx
push 1
push esi
push edi
call fcn.100caa46
jmp 0x100974c3
cmp dword [ebp + 0x28], esi
jae 0x100974d5
push esi
push ecx
push edi
call fcn.100cab31
test eax, eax
js 0x100976bc
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.10116a20
mov dword [ebp + 0x24], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [eax], ebp
xor eax, eax
jmp 0x100976bc
test esi, esi
je 0x1009757e
push dword [edi + 0x28]
call fcn.100377f0
mov cl, byte [esp + 0x13]
test cl, cl
je 0x10097558
imul eax, eax, 0x68
cmp dword [eax + 0x10177a80], ebx
ja 0x10097558
mov al, byte [esp + 0x38]
cmp cl, al
je 0x1009754c
mov eax, dword [esp + 0x14]
push ebx
push eax
movzx eax, cl
movzx eax, byte [eax + 0x1000c7fc]
push eax
push 0xffffe041
push ebx
push ebx
push dword [esi + 8]
push dword [edi + 0x28]
call fcn.100378e0
mov eax, 0xfffff427
jmp 0x100976bc
mov ecx, dword [esp + 0x1c]
or dword [ecx], 0x8000
jmp 0x1009756e
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 0x100975b0
cmp eax, 0xa
jbe 0x100975a8
cmp eax, 0xc
jbe 0x10097592
cmp eax, 0x11
jne 0x100975b0
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 0x100975c2
mov edx, dword [ebp]
add ebp, 4
jmp 0x100975bc
push eax
call fcn.1003aa80
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 0x100975da
test cl, 1
jne 0x10097542
sub dword [esp + 0x34], ebp
cmp dword [esp + 0x34], edx
jb 0x1009768e
test esi, esi
je 0x1009767f
cmp byte [esp + 0x38], 8
je 0x1009761d
cmp byte [esp + 0x38], 0xc
je 0x1009761d
cmp byte [esp + 0x38], 0xe
je 0x1009761d
cmp eax, 0xff
je 0x1009767f
mov eax, dword [esp + 0x1c]
push eax
push edx
push ebp
push dword [edi + 0x2c]
call fcn.10097d5e
jmp 0x1009767b
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 0x1009763f
push esi
push 1
push ecx
push edi
mov dword [eax + 0x28], ecx
call fcn.100caa46
jmp 0x1009764f
cmp dword [eax + 0x28], ecx
jae 0x10097655
push ecx
push esi
push edi
mov dword [eax + 0x28], ecx
call fcn.100cab31
mov ecx, dword [esp + 0x18]
mov ebx, eax
test ebx, ebx
jns 0x1009765d
mov eax, ebx
jmp 0x100976bc
test ecx, ecx
je 0x10097674
push ecx
push dword [esp + 0x2c]
push dword [esi]
call fcn.101180b0
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 0x100974e7
test esi, esi
je 0x100976b7
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.100378e0
mov eax, 0xfffff43e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10