Function at 0x438860
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x6118c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push 0
push eax
push 0
push 0x800004
push ecx
push 0x643658
push 1
mov ecx, ebp
call fcn.0056af06
lea esi, [ebp + 0x1c8]
mov dword [esp + 0x20], 0
mov ecx, esi
mov dword [ebp], vtable.CSnapOpenDlg.0
call fcn.0055f1a4
mov dword [esi], vtable.CSpinButtonCtrl.0
lea esi, [ebp + 0x21c]
mov ecx, esi
mov byte [esp + 0x20], 1
call fcn.0055f1a4
mov dword [esi], vtable.CButton.0
lea esi, [ebp + 0x270]
mov ecx, esi
mov byte [esp + 0x20], 2
call fcn.0055f1a4
mov dword [esi], vtable.CStatic.0
lea esi, [ebp + 0x2c4]
mov ecx, esi
mov byte [esp + 0x20], 3
call fcn.0055f1a4
mov dword [esi], vtable.CButton.0
lea esi, [ebp + 0x318]
mov ecx, esi
mov byte [esp + 0x20], 4
call fcn.0055f1a4
mov dword [esi], vtable.CStatic.0
lea esi, [ebp + 0x36c]
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.0055f1a4
mov dword [esi], vtable.CEdit.0
lea esi, [ebp + 0x3c0]
mov ecx, esi
mov byte [esp + 0x20], 6
call fcn.0055f1a4
mov dword [esi], vtable.CStatic.0
lea edx, [ebp + 0x418]
push edx
mov byte [esp + 0x24], 7
call fcn.004e31f0
mov byte [esp + 0x20], 8
call fcn.00564d6e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x438988
push 0x80004005
call fcn.004012a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x20], 9
mov byte [0x6abf90], 0
mov ebx, 0x190
lea esp, [esp]
push ebx
call fcn.0056aa5c
test eax, eax
je 0x4389c5
push ebx
push eax
lea ecx, [esp + 0x34]
call fcn.00404f40
mov esi, dword [esp + 0x2c]
mov edi, 0x643268
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x438a12
mov eax, dword [esp + 0x2c]
mov ecx, eax
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4389e0
mov edi, 0x6abf90
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4389f5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, 1
jmp 0x4389b0
mov ebx, 0x1af
push ebx
call fcn.0056aa5c
test eax, eax
je 0x438a2c
push ebx
push eax
lea ecx, [esp + 0x34]
call fcn.00404f40
mov eax, dword [esp + 0x2c]
mov edi, 0x643268
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x438a7d
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x438a44
mov edi, 0x6abf90
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x438a60
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, 1
jmp 0x438a17
mov edi, 0x6abf90
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x438a85
mov ax, word [0x64326c]
mov word [edi], ax
mov eax, 0x6abf90
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x438aa0
sub eax, edx
lea ecx, [eax + 0x6abf90]
mov eax, 0x6abf90
cmp ecx, eax
jbe 0x438acf
lea ebx, [ebx]
cmp byte [eax], 0x7c
jne 0x438ac8
mov byte [eax], 0
add eax, 1
cmp eax, ecx
jb 0x438ac0
mov eax, 1
test byte [0x6b5fe4], al
mov dword [ebp + 0x414], eax
jne 0x438b20
or dword [0x6b5fe4], eax
call fcn.00564d6e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x438b02
push 0x80004005
call fcn.004012a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x618ae0
mov dword [0x6b5fe0], eax
call fcn.0059e40a
add esp, 4
push 0x8c
call fcn.0056aa5c
test eax, eax
je 0x438b3e
push 0x8c
push eax
mov ecx, 0x6b5fe0
call fcn.00404f40
mov esi, dword [0x6b5fe0]
mov ecx, ebp
call fcn.00577b94
mov ecx, ebp
mov dword [eax + 0x30], esi
call fcn.00577b94
or dword [eax + 0x34], 0x81040
add eax, 0x34
call fcn.00568851
mov esi, dword [eax + 0xc]
mov ecx, ebp
call fcn.00577b94
mov ecx, ebp
mov dword [eax + 8], esi
call fcn.00577b94
mov ecx, ebp
mov dword [eax + 0xc], 0x6abf90
call fcn.00577b94
mov ecx, dword [0x69ef38]
mov dword [eax + 0x18], ecx
mov ecx, ebp
call fcn.00577b94
mov dword [eax + 0x20], 0x104
call fcn.005669f5
test eax, eax
je 0x438bb3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov esi, eax
jmp 0x438bb5
xor esi, esi
mov ecx, ebp
call fcn.00577b94
mov ecx, dword [esi + 0x20]
mov dword [eax + 4], ecx
mov ecx, ebp
call fcn.00577b94
mov eax, dword [eax + 0x1c]
push 0x5c
push eax
call fcn.0059eac0
add esp, 8
test eax, eax
jne 0x438c36
mov ecx, ebp
call fcn.00577b94
mov eax, dword [eax + 0x1c]
push 0x2f
push eax
call fcn.0059eac0
add esp, 8
test eax, eax
jne 0x438c36
mov eax, 0x6ac790
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x438c00
sub eax, edx
je 0x438c36
push 0x6ac790
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
push 0x6ac790
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov ecx, ebp
call fcn.00577b94
mov dword [eax + 0x2c], 0x6ac790
mov byte [esp + 0x20], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438c5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8