Function at 0x40df10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x51c200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x24], ebx
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], 1
mov edi, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, edi
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x40df85
push edi
lea ecx, [esp + 0x14]
call fcn.00401d10
mov esi, dword [esp + 0x10]
cmp dword [esi - 8], edi
jge 0x40df94
push 0x80070057
call fcn.00401c90
push esi
mov dword [esi - 0xc], edi
push edi
mov byte [esi + 0x104], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40dfb0
sub eax, edx
js 0x40df8a
cmp eax, dword [esi - 8]
jg 0x40df8a
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
push str.img_setdlgFlag.bmp
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00401450
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.0040f190
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e00f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x14]
lea edi, [ebp + 0xb0]
push ebp
call fcn.00498280
push 8
call fcn.004fa746
add esp, 4
cmp eax, ebx
je 0x40e038
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x40e03a
xor eax, eax
mov dword [ebp + 0x70], eax
push str.img_setdlg_title_bg.bmp
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00401450
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.0040f190
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0x70]
push ebp
call fcn.00498280
push 8
call fcn.004fa746
add esp, 4
cmp eax, ebx
je 0x40e0ac
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x40e0ae
xor eax, eax
push 8
mov dword [ebp + 0x74], eax
call fcn.004fa746
add esp, 4
cmp eax, ebx
je 0x40e0ca
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x40e0cc
xor eax, eax
push 8
mov dword [ebp + 0x78], eax
call fcn.004fa746
add esp, 4
cmp eax, ebx
je 0x40e0e8
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x40e0ea
xor eax, eax
push 8
mov dword [ebp + 0x7c], eax
call fcn.004fa746
add esp, 4
cmp eax, ebx
je 0x40e106
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x40e108
xor eax, eax
push 8
mov dword [ebp + 0x80], eax
call fcn.004fa746
add esp, 4
cmp eax, ebx
je 0x40e127
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x40e129
xor eax, eax
push 8
mov dword [ebp + 0x84], eax
call fcn.004fa746
add esp, 4
cmp eax, ebx
je 0x40e148
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x40e14a
xor eax, eax
push 8
mov dword [ebp + 0x88], eax
call fcn.004fa746
add esp, 4
cmp eax, ebx
je 0x40e169
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x40e16b
xor eax, eax
push 8
mov dword [ebp + 0x8c], eax
call fcn.004fa746
add esp, 4
cmp eax, ebx
je 0x40e18a
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x40e18c
xor eax, eax
mov dword [ebp + 0x90], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret