Function at 0x4bd85d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556997
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x5b93d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c4], ecx
and dword [ebp - 0x1c8], 0
mov eax, dword [ebp - 0x1c4]
add eax, 8
push eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.004b616b
pop ecx
pop ecx
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], eax
push dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0xc
call fcn.004bd7db
lea ecx, [ebp - 0x1c0]
call fcn.00410a3c
mov eax, dword [ebp - 0x1c4]
add eax, 0x20
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.004b616b
pop ecx
pop ecx
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x24c], eax
push dword [ebp - 0x24c]
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0x24
call fcn.004bd7db
lea ecx, [ebp - 0x1a8]
call fcn.00410a3c
mov eax, dword [ebp - 0x1c4]
add eax, 0x38
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b616b
pop ecx
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.004bd4c2
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c4]
cmp dword [eax + 4], 2
jne 0x4bdca1
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax]
mov dword [ebp - 0x248], eax
push 6
mov ecx, dword [ebp - 0x248]
call fcn.0041cc69
movzx eax, byte [eax]
test eax, eax
je 0x4bda93
push 0x56dd94
lea ecx, [ebp - 0x148]
call fcn.0040e0e1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x274]
call fcn.004bcd54
mov ecx, eax
call fcn.00407d38
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x234]
push eax
call fcn.00406b1d
pop ecx
mov dword [ebp - 0x244], eax
push dword [ebp - 0x244]
push 0x56dd84
push 1
push 0
push 0x586a5c
call dword [ebp - 0x240]
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call fcn.00410a23
cmp dword [ebp - 0x238], 0
jl 0x4bda93
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax]
mov dword [ebp - 0x228], eax
push 4
mov eax, dword [ebp - 0x1c4]
movzx eax, byte [eax + 0x50]
push eax
call fcn.004bd819
pop ecx
pop ecx
mov byte [ebp - 0x230], al
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x228]
call fcn.004becd3
mov eax, dword [ebp - 0x1c8]
or eax, 1
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.004bd725
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00410a3c
mov eax, dword [ebp + 8]
jmp 0x4be2ce
push 0x20
push 0
lea eax, [ebp - 0x270]
push eax
call fcn.00520810
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x25c], 0x4be6bf
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax]
mov dword [ebp - 0x224], eax
push 6
mov ecx, dword [ebp - 0x224]
call fcn.0041cc69
movzx eax, byte [eax]
test eax, eax
je 0x4bdb2b
lea ecx, [ebp - 0x1dc]
call fcn.004be805
movzx eax, al
test eax, eax
je 0x4bdb0d
mov eax, dword [ebp - 0x260]
or eax, 0x40
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
or eax, 0x10
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
or eax, 4
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x1e0], eax
lea ecx, [ebp - 0x88]
call fcn.0040e585
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1e0], 0
je 0x4bdc51
push 0x208
call fcn.0051e3d4
pop ecx
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x1e4], eax
push dword [ebp - 0x1e4]
push dword [ebp - 0x1e0]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0x56dda8
lea ecx, [ebp - 0x130]
call fcn.0040e0e1
mov byte [ebp - 4], 4
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x278]
call fcn.004bcd54
mov ecx, eax
call fcn.00407d38
mov dword [ebp - 0x21c], eax
push dword [ebp - 0x1e0]
call dword [ebp - 0x21c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call fcn.00410a23
push dword [ebp - 0x1e4]
lea ecx, [ebp - 0x118]
call fcn.004b48bc
mov byte [ebp - 4], 5
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.004b622d
pop ecx
pop ecx
mov dword [ebp - 0x218], eax
push dword [ebp - 0x218]
lea ecx, [ebp - 0x88]
call fcn.00411492
lea ecx, [ebp - 0x190]
call fcn.00410a23
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x118]
call fcn.00410a3c
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x214], eax
push dword [ebp - 0x214]
call fcn.0051db43
pop ecx
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040df66
mov eax, dword [ebp - 0x1c8]
or eax, 1
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00410a23
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.004bd725
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00410a3c
mov eax, dword [ebp + 8]
jmp 0x4be2ce
push 0x58
push 0
lea eax, [ebp - 0x2d0]
push eax
call fcn.00520810
add esp, 0xc
mov dword [ebp - 0x2d0], 0x58
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x40]
call fcn.0041c138
mov dword [ebp - 0x2c4], eax
push 0
push 0x10400
lea ecx, [ebp - 0x28]
call fcn.0040e619
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.0041c138
mov dword [ebp - 0x2b4], eax
lea ecx, [ebp - 0x28]
call fcn.00417983
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0x24
call fcn.0041c807
movzx eax, al
test eax, eax
jne 0x4bddd8
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0x24
call fcn.0041c138
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0xffffffff
je 0x4bdd6b
mov eax, dword [ebp - 0x1e8]
and eax, 0x10
je 0x4bdd6b
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0x24
call fcn.0041c138
mov dword [ebp - 0x2a4], eax
jmp 0x4bddd8
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0x24
call fcn.00417983
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00417983
cmp esi, eax
ja 0x4bddac
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0x24
call fcn.0041c138
push eax
push 0x10401
push dword [ebp - 0x2b4]
call fcn.004be565
jmp 0x4bddd8
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0x24
call fcn.0041c138
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0x24
call fcn.00417983
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
add ecx, 0xc
call fcn.0041c138
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], 0x80008
push str.comdlg32.dll
lea ecx, [ebp - 0x100]
call fcn.0040e0e1
mov byte [ebp - 4], 7
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.0040f886
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x100]
call fcn.00410a23
lea ecx, [ebp - 0x1d4]
call fcn.0040fe04
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x1c4]
cmp dword [eax + 4], 1
jne 0x4bdfd6
push 2
mov eax, dword [ebp - 0x1c4]
movzx eax, byte [eax + 0x50]
push eax
call fcn.004bd819
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x4bde76
mov eax, dword [ebp - 0x29c]
or eax, 2
mov dword [ebp - 0x29c], eax
push str.GetSaveFileNameW
lea ecx, [ebp - 0xe8]
call fcn.0040e0e1
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x210]
call fcn.004bcd54
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe8]
call fcn.00410a23
lea ecx, [ebp - 0x210]
call fcn.00407d38
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x2d0]
push eax
call dword [ebp - 0x20c]
test eax, eax
jne 0x4bdf3d
push 0x55fd88
mov ecx, dword [ebp + 8]
call fcn.0040e0e1
mov eax, dword [ebp - 0x1c8]
or eax, 1
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1d4]
call fcn.004112e5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d0]
call fcn.00411175
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00410a3c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.004bd725
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00410a3c
mov eax, dword [ebp + 8]
jmp 0x4be2ce
lea ecx, [ebp - 0x28]
call fcn.0041c138
push eax
lea ecx, [ebp - 0xd0]
call fcn.004b48bc
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xd0]
push eax
push dword [ebp + 8]
call fcn.004b622d
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c8]
or eax, 1
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd0]
call fcn.00410a3c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1d4]
call fcn.004112e5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d0]
call fcn.00411175
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00410a3c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.004bd725
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00410a3c
mov eax, dword [ebp + 8]
jmp 0x4be2ce
push 1
mov eax, dword [ebp - 0x1c4]
movzx eax, byte [eax + 0x50]
push eax
call fcn.004bd819
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x4be002
mov eax, dword [ebp - 0x29c]
or eax, 0x200
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x29c]
or eax, 0x800
mov dword [ebp - 0x29c], eax
push str.GetOpenFileNameW
lea ecx, [ebp - 0xb8]
call fcn.0040e0e1
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x208]
call fcn.004bcd54
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb8]
call fcn.00410a23
lea ecx, [ebp - 0x208]
call fcn.00407d38
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x2d0]
push eax
call dword [ebp - 0x23c]
test eax, eax
jne 0x4be0da
push 0x55fd88
mov ecx, dword [ebp + 8]
call fcn.0040e0e1
mov eax, dword [ebp - 0x1c8]
or eax, 1
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1d4]
call fcn.004112e5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d0]
call fcn.00411175
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00410a3c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.004bd725
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00410a3c
mov eax, dword [ebp + 8]
jmp 0x4be2ce
lea ecx, [ebp - 0x58]
call fcn.0040e585
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.0041c138
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
movzx eax, word [eax]
test eax, eax
je 0x4be25e
push dword [ebp - 0x1cc]
lea ecx, [ebp - 0xa0]
call fcn.004b48bc
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004b622d
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xa0]
call fcn.00410a3c
push dword [ebp - 0x1cc]
call fcn.005238b9
pop ecx
mov ecx, dword [ebp - 0x1cc]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x1cc], eax
push 1
mov eax, dword [ebp - 0x1c4]
movzx eax, byte [eax + 0x50]
push eax
call fcn.004bd819
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x4be1e3
mov eax, dword [ebp - 0x1cc]
inc eax
inc eax
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
movzx eax, word [eax]
test eax, eax
je 0x4be1e3
lea ecx, [ebp - 0x58]
call fcn.0041c807
movzx eax, al
test eax, eax
je 0x4be1e3
push 0x5684f4
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.004a84f7
add esp, 0xc
mov dword [ebp - 0x1f4], eax
push dword [ebp - 0x1f4]
lea ecx, [ebp - 0x58]
call fcn.00411492
lea ecx, [ebp - 0x178]
call fcn.00410a23
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.00410a23
jmp 0x4be0f4
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax]
add eax, 0x3c
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004403b2
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], eax
push dword [ebp - 0x200]
mov ecx, dword [ebp - 0x204]
call fcn.0044cd3d
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x160]
call fcn.00410a23
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.00410a23
jmp 0x4be0f4
push 0x55fd88
mov ecx, dword [ebp + 8]
call fcn.0040e0e1
mov eax, dword [ebp - 0x1c8]
or eax, 1
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x58]
call fcn.00410a23
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1d4]
call fcn.004112e5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d0]
call fcn.00411175
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00410a3c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.004bd725
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00410a3c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dfa2
leave
ret 8