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

Disassembly:
cmp dword [ecx + 0x60], 0
jne 0x1002af6c
cmp byte [ecx + 0x5d], 0
jne 0x1002af6c
cmp dword [ecx + 0x24], 0
jne 0x1002af67
xor al, al
ret 4
jmp 0x1002af80
mov al, 1
ret 4
sub esp, 0x78
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x60], 0
je 0x1002af9b
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 4
mov ecx, dword [esi + 0x20]
xor bl, bl
test ecx, ecx
je 0x1002afb2
cmp word [0x10059e08], 0x59
jb 0x1002afb2
mov bh, 1
jmp 0x1002afb4
xor bh, bh
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
movzx eax, bh
shl eax, 9
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x1002b068
mov ecx, dword [esi + 0x1c]
test cl, cl
jns 0x1002b045
mov bl, 1
jmp 0x1002b068
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x48]
jle 0x1002b055
mov eax, dword [esi + 0x54]
cmp eax, dword [esi + 0x4c]
jg 0x1002b068
test cl, 4
jne 0x1002b068
or ecx, 0x80
mov bl, 1
mov dword [esi + 0x1c], ecx
mov byte [esi + 0x10], bl
mov eax, dword [esi + 0x30]
lea edi, [esi + 0x28]
cmp eax, dword [edi]
jle 0x1002b07e
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 4]
jle 0x1002b07e
mov al, 1
jmp 0x1002b080
xor al, al
xor ecx, ecx
test al, al
mov eax, dword [esi + 0x50]
cmove edi, ecx
cmp eax, dword [esi + 0x48]
lea ecx, [esi + 0x48]
jle 0x1002b0a6
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 4]
jle 0x1002b0a6
test bl, bl
mov ebp, 0x10051e30
cmove ebp, ecx
jmp 0x1002b0a8
xor ebp, ebp
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push edx
mov eax, dword [eax + 8]
lea edx, [esp + 0x38]
push edx
call eax
test al, al
je 0x1002b217
mov edx, dword [esp + 0x14]
test edx, 0x100
je 0x1002b0ee
mov ecx, esi
call fcn.1002b330
mov edx, dword [esp + 0x14]
or edx, dword [esi + 0x1c]
cmp word [0x10059e08], 0x40
mov dword [esp + 0x14], edx
jb 0x1002b118
mov eax, dword [esi + 0xc]
movzx edx, dx
mov eax, dword [eax + 0xc]
movzx ecx, word [eax + 0x3d0]
shl ecx, 0x10
or edx, ecx
mov dword [esp + 0x14], edx
test bh, bh
je 0x1002b121
mov eax, dword [esi + 0x20]
jmp 0x1002b123
xor eax, eax
push dword [esp + 0x18]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x58]
push dword [esp + 0x58]
push 0
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x94]
push dword [esp + 0x8c]
push ebp
push edi
push eax
push dword [esi + 0x24]
push esi
push edx
push dword [esi + 0x18]
call dword [0x10059dfc]
test eax, eax
je 0x1002b217
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x1002b20c
xor bl, 1
mov dword [esi + 0x20], eax
mov byte [esi + 0x5e], bl
mov byte [esp + 0x13], 2
jmp 0x1002b21c
cmp ecx, eax
jne 0x1002b217
mov byte [esp + 0x13], 2
jmp 0x1002b21c
mov byte [esp + 0x13], 0
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edi, [esp + 0x88]
mov esi, 0x18
mov edi, edi
push dword [edi - 4]
lea edi, [edi - 4]
call ebx
sub esi, 1
jne 0x1002b230
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 4