Function at 0x10033ec5
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10048551
call fcn.1000cf04
sub esp, 0x130
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, ecx
jne 0x10033ef0
call fcn.10026178
mov ecx, dword [esi + 0xc]
lea ebx, [edi + 0x1c]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x10033f0d
test ecx, ecx
je 0x10033f0d
push 0
push ebx
push dword [esi + 4]
call fcn.10026178
mov eax, dword [edi + 8]
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx - 0xc], eax
jne 0x10033f35
mov ebx, dword [ebx]
cmp dword [ebx - 0xc], eax
je 0x10033f28
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
jmp 0x100341a8
cmp dword [esi + 0xc], eax
je 0x100341a8
xor ebx, ebx
cmp dword [edi + 4], eax
jle 0x10033f5f
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
push 0
add eax, ebx
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
inc ebx
cmp ebx, dword [edi + 4]
jl 0x10033f45
lea eax, [ebp - 0x120]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x100341a8
cmp eax, ebx
jae 0x100341a8
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ebx, eax
mov byte [ebp + ebx - 0x120], 0x5c
inc ebx
mov dword [ebp - 0x134], ebx
mov byte [ebp + ebx - 0x120], 0
call fcn.10034457
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x130], eax
and dword [ebp - 4], 0
call fcn.10034457
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x12c], eax
and dword [ebp - 0x128], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 1
jle 0x10034173
jmp 0x10033ff6
mov ebx, dword [ebp - 0x134]
mov eax, dword [edi]
push 1
push ebx
lea ecx, [ebp - 0x120]
push ecx
push dword [ebp - 0x128]
lea ecx, [ebp - 0x130]
push ecx
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x10034173
mov ebx, dword [ebp - 0x130]
mov eax, dword [ebx - 0xc]
add eax, eax
push eax
lea ecx, [ebp - 0x12c]
call fcn.10003c5f
mov dword [ebp - 0x124], eax
jmp 0x1003407e
cmp al, 0x26
jne 0x1003404e
mov eax, dword [ebp - 0x124]
inc dword [ebp - 0x124]
mov byte [eax], 0x26
movsx eax, byte [ebx]
push eax
call fcn.10011001
test eax, eax
pop ecx
je 0x1003406d
mov al, byte [ebx]
mov ecx, dword [ebp - 0x124]
inc dword [ebp - 0x124]
mov byte [ecx], al
inc ebx
mov al, byte [ebx]
mov ecx, dword [ebp - 0x124]
inc dword [ebp - 0x124]
mov byte [ecx], al
inc ebx
mov al, byte [ebx]
test al, al
jne 0x1003403b
mov eax, dword [ebp - 0x124]
push 0xffffffffffffffff
lea ecx, [ebp - 0x12c]
mov byte [eax], 0
call fcn.10003f1e
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x128]
lea eax, [eax + ecx + 1]
and eax, 0xf
cmp eax, 0xa
jle 0x100340b7
push eax
push 0x1004b288
jmp 0x100340d0
jne 0x100340ca
push str.10
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
jmp 0x100340dd
push eax
push str._d
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x124], eax
inc eax
mov dword [esi + 8], eax
lea eax, [ebx + 1]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.10003df1
lea ecx, [ebp - 0x12c]
push ecx
push eax
lea eax, [ebp - 0x138]
push eax
mov dword [ebp - 4], 2
call fcn.1000526d
mov ecx, dword [eax]
mov eax, dword [esi + 0xc]
add esp, 0xc
push ecx
push ebx
push 0x400
push dword [ebp - 0x124]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InsertMenuA]
mov ecx, dword [ebp - 0x138]
add ecx, 0xfffffff0
call fcn.1000398e
mov ecx, dword [ebp - 0x13c]
add ecx, 0xfffffff0
mov dword [ebp - 4], 1
call fcn.1000398e
inc dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
cmp eax, dword [edi + 4]
jl 0x10033ff0
mov eax, dword [esi + 0xc]
dec dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], 1
call fcn.1000398e
mov ecx, dword [ebp - 0x130]
add ecx, 0xfffffff0
call fcn.1000398e
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cef6
leave
ret 4