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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x2f8
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, eax
mov dl, byte [eax]
cmp dl, 0xff
mov byte [esp + 0xcf], dl
mov dword [esp + 0xc8], ecx
je 0x10001388
jmp 0x1000141b
mov eax, 1
mov ecx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [ecx], 0x6a
mov dword [esp + 0xc4], eax
je 0x1000167d
jmp 0x1000166b
xor eax, eax
lea ecx, [esp + 0x2e0]
lea edx, [esp + 0xd0]
mov esi, edx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
mov ecx, esp
mov dword [ecx + 0x20], 0x23b
mov dword [ecx + 0x1c], 0xe5e
mov dword [ecx + 0x18], 0x2a
mov dword [ecx + 0x14], 0xe5e
mov dword [ecx + 0x10], 0xe5e
mov dword [ecx + 0xc], 0xe5e
mov dword [ecx + 8], 0xe5e
mov dword [ecx + 4], 0xe5e
mov dword [ecx], 0x1522be
mov ecx, dword [sym.imp.GDI32.dll_Pie]
mov dword [esp + 0xb0], eax
call ecx
sub esp, 0x24
mov ecx, dword [esp + 0xb0]
sub ecx, 9
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], ecx
je 0x10001462
jmp 0x1000124b
mov eax, dword [esp + 0xb0]
sub eax, 0x62
mov dword [esp + 0xa4], eax
je 0x1000144c
jmp 0x1000129b
mov eax, esp
mov dword [eax], 0x58
mov eax, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeA]
call eax
sub esp, 4
mov dword [esp + 0xa0], eax
jmp 0x100013b6
mov eax, dword [esp + 0x9c]
cmp byte [eax + 1], 0x25
mov dword [esp + 0x98], eax
je 0x100012ba
jmp 0x100014ae
mov eax, dword [esp + 0xb0]
add eax, 1
cmp eax, 0xd9
mov dword [esp + 0xb4], eax
je 0x100012e9
jmp 0x100011d2
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 2]
mov ecx, dword [ecx]
mov dl, byte [ecx]
cmp dl, 0xff
mov esi, ecx
mov dword [esp + 0x9c], esi
mov dword [esp + 0x94], ecx
mov byte [esp + 0x93], dl
je 0x10001282
jmp 0x100013ff
mov eax, 2
mov dword [esp + 0xc4], eax
jmp 0x1000167d
mov eax, dword [esp + 0x8c]
mov ecx, esp
mov dword [ecx + 0x20], 0x23b
mov dword [ecx + 0x1c], 0xe5e
mov dword [ecx + 0x18], 0x2a
mov dword [ecx + 0x14], 0xe5e
mov dword [ecx + 0x10], 0xe5e
mov dword [ecx + 0xc], 0xe5e
mov dword [ecx + 8], 0xe5e
mov dword [ecx + 4], 0xe5e
mov dword [ecx], 0x1522be
mov ecx, dword [sym.imp.GDI32.dll_Pie]
mov dword [esp + 0x88], eax
call ecx
sub esp, 0x24
mov ecx, dword [esp + 0x88]
sub ecx, 9
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ecx
je 0x100013b6
jmp 0x1000136f
mov eax, dword [esp + 0x88]
sub eax, 0x62
mov dword [esp + 0x7c], eax
je 0x10001264
jmp 0x1000163f
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp + 0x9c], eax
jmp 0x10001282
mov eax, dword [esp + 0x78]
add eax, 1
cmp eax, 0x17e
mov dword [esp + 0x74], eax
jl 0x100015a8
jmp 0x10001184
mov dword [esp + 0x2ec], 0
mov dword [esp + 0x2e8], 0
mov eax, esp
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
lea edx, [esp + 0x2f0]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 0x40a
mov dword [eax], 0x64f4d1
mov eax, dword [sym.imp.GDI32.dll_PlayMetaFileRecord]
call eax
sub esp, 0x10
mov dword [esp + 0x6c], eax
jmp 0x1000163f
mov al, byte [esp + 0x93]
mov ecx, dword [esp + 0x94]
mov byte [esp + 0xcf], al
mov dword [esp + 0xc8], ecx
mov eax, dword [esp + 0xc8]
mov cl, byte [esp + 0xcf]
cmp cl, 0xb8
mov dword [esp + 0x68], eax
jne 0x100014b0
mov eax, dword [esp + 0x68]
cmp byte [eax + 3], 0x50
jne 0x100014b0
mov eax, dword [esp + 0x68]
cmp byte [eax + 4], 0xcd
je 0x100011a4
jmp 0x100014b0
mov eax, esp
mov dword [eax], 0x58
mov eax, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeA]
call eax
sub esp, 4
mov dword [esp + 0x64], eax
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
mov eax, esp
mov ecx, dword [esp + 0xb8]
mov dword [eax + 8], ecx
lea edx, [esp + 0x2e0]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 0x40a
mov dword [eax], 0x64f4d1
mov eax, dword [sym.imp.GDI32.dll_PlayMetaFileRecord]
call eax
sub esp, 0x10
mov dword [esp + 0x60], eax
jmp 0x1000129b
jmp 0x100014b0
lea eax, [esp + 0xd8]
mov ecx, eax
add ecx, 8
mov edx, eax
add edx, 0xc
mov esi, eax
mov edi, esp
mov dword [edi + 4], eax
mov dword [edi + 8], 0x104
mov dword [edi], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], esi
call edi
sub esp, 0xc
cmp word [esp + 0xe4], 0x54
sete bl
cmp word [esp + 0xe0], 0x45
sete bh
and bl, bh
test bl, 1
mov dword [esp + 0x4c], eax
jne 0x1000151d
jmp 0x10001539
lea eax, [esp + 0xd8]
add eax, 0xa
cmp word [esp + 0xe2], 0x53
mov dword [esp + 0x48], eax
je 0x10001557
lea eax, [esp + 0xd8]
mov ecx, eax
add ecx, 0xe
add eax, 0xa
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
jmp 0x1000158f
mov eax, 2
lea ecx, [esp + 0xd8]
add ecx, 0xe
mov dx, word [esp + 0xe6]
cmp dx, 0x41
mov esi, dword [esp + 0x48]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0xc4], eax
je 0x1000167d
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, 0x18
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x74]
mov ecx, esp
mov edx, dword [esp + 0x5c]
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0x104
mov dword [ecx], 0
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esp + 0x78], eax
call ecx
sub esp, 0xc
mov ecx, dword [esp + 0x54]
cmp word [ecx], 0x46
sete bl
mov edx, dword [esp + 0x3c]
cmp word [edx], 0x2e
sete bh
and bl, bh
mov esi, dword [esp + 0x38]
cmp word [esi], 0x4c
sete bh
and bl, bh
mov edi, dword [esp + 0x58]
cmp word [edi], 0x45
sete bh
and bl, bh
test bl, 1
mov dword [esp + 0x34], eax
jne 0x10001615
jmp 0x10001399
xor eax, eax
lea ecx, [esp + 0x2f0]
lea edx, [esp + 0x2e8]
mov esi, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x8c], eax
jmp 0x100012fa
mov eax, dword [esp + 0x88]
add eax, 1
cmp eax, 0xd9
mov dword [esp + 0x8c], eax
jne 0x100012fa
mov eax, 2
mov dword [esp + 0xc4], eax
jmp 0x1000167d
call fcn.10009880
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0xc4], ecx
mov eax, dword [esp + 0xc4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret