Function at 0x43f52e
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x510eae
call fcn.00485d6b
mov esi, ecx
mov dword [ebp - 0x238], esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x43f80d
lea ecx, [esi + 0x1c]
xor edi, edi
mov eax, dword [ecx]
mov dword [ebp - 0x234], edi
cmp dword [eax - 0xc], edi
jne 0x43f577
cmp dword [ebx + 0xc], edi
je 0x43f577
push edi
push ecx
push dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
call fcn.0044d394
lea ecx, [esi + 0x1c]
mov eax, dword [esi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x43f5b3
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], edi
je 0x43f59a
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x519a74]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x519a74]
mov ecx, ebx
call esi
call fcn.00485d1a
ret 4
cmp dword [ebx + 0xc], edi
je 0x43f5ab
mov edx, edi
mov dword [ebp - 0x230], edi
cmp dword [esi + 4], edi
jle 0x43f5ea
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
add eax, edx
push edi
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov edx, dword [ebp - 0x230]
inc edx
mov dword [ebp - 0x230], edx
cmp edx, dword [esi + 4]
jl 0x43f5c5
lea eax, [ebp - 0x22c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x43f5ab
cmp eax, 0x104
jae 0x43f5ab
lea eax, [ebp - 0x22c]
push eax
call fcn.004b7298
pop ecx
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x22c], cx
inc eax
mov dword [ebp - 0x240], eax
add eax, eax
cmp eax, 0x208
jae 0x43f808
xor ecx, ecx
mov word [ebp + eax - 0x22c], cx
lea ecx, [ebp - 0x23c]
call fcn.0040e1e2
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edi
call fcn.0040e1e2
mov byte [ebp - 4], 1
cmp dword [esi + 4], edi
jle 0x43f7ce
mov eax, dword [esi]
push 1
push dword [ebp - 0x240]
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x22c]
push eax
push edi
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call dword [0x519a74]
mov ecx, dword [ebp - 0x238]
call esi
test eax, eax
je 0x43f7ce
mov esi, dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
call fcn.00410161
mov ecx, eax
movzx eax, word [esi]
test ax, ax
je 0x43f6e4
push 0x26
mov edx, eax
pop edi
cmp dx, di
jne 0x43f6c8
mov word [ecx], di
add ecx, 2
movzx eax, word [esi]
add esi, 2
mov word [ecx], ax
add ecx, 2
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x43f6bd
mov edi, dword [ebp - 0x234]
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x230]
push 0xffffffffffffffff
call fcn.00419440
mov ecx, dword [ebp - 0x238]
push 0xa
mov eax, dword [ecx + 0x14]
add eax, edi
and eax, 0xf
inc eax
pop ecx
cmp eax, ecx
jbe 0x43f714
push eax
push 0x5241d4
jmp 0x43f733
jne 0x43f72d
push str.10
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.004e02a5
push eax
call fcn.0040ebf4
jmp 0x43f73d
push eax
push 0x5241e8
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.00407e1a
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x24]
add esp, 0x10
lea ecx, [ebp - 0x248]
push eax
call fcn.0040e111
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0043ee67
mov edx, dword [ebx + 4]
add esp, 0xc
mov ecx, dword [ebx + 8]
mov esi, dword [eax]
push esi
push edx
lea eax, [edx + 1]
mov dword [ebx + 4], eax
lea eax, [ecx + 1]
push 0x400
push ecx
mov dword [ebx + 8], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InsertMenuW]
mov ecx, dword [ebp - 0x244]
lea ecx, [ecx - 0x10]
call fcn.004101ea
mov ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004101ea
mov edi, dword [ebp - 0x234]
mov esi, dword [ebp - 0x238]
inc edi
mov dword [ebp - 0x234], edi
cmp edi, dword [esi + 4]
jl 0x43f663
mov eax, dword [ebx + 0xc]
dec dword [ebx + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [ebp - 0x230]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x18], 1
lea ecx, [ecx - 0x10]
call fcn.004101ea
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.004101ea
jmp 0x43f5ab
call fcn.00486a73
call fcn.00414190
int3