Function at 0x4080fc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x496e00
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4bf490]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4bf490]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push 0x49fc88
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
call fcn.00403740
and dword [esp + 0x280], 0
mov esi, str.AiPredefOpen
push esi
lea ecx, [esp + 0x58]
call fcn.00403740
xor ebx, ebx
inc ebx
mov byte [esp + 0x280], bl
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x58]
push eax
push 0x138e
lea eax, [esp + 0x108]
push eax
call fcn.0045e4fd
mov byte [esp + 0x280], 3
push 0
push ebx
lea ecx, [esp + 0x5c]
call fcn.0040292b
mov byte [esp + 0x280], 4
push 0
push ebx
lea ecx, [esp + 0x78]
call fcn.0040292b
mov ecx, dword [edi + 8]
lea edx, [esp + 0xfc]
mov dword [esp + 0x138], ebx
mov eax, dword [ecx]
push edx
call dword [eax + 8]
or dword [esp + 0x280], 0xffffffff
lea eax, [esp + 0xfc]
push eax
call fcn.00402e6a
push 0
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], 7
call fcn.0040290d
mov dword [esp + 0x280], 5
push dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x154]
push edx
call dword [eax]
mov byte [esp + 0x280], 6
push str.BrowseFolderLocation
lea ecx, [esp + 0x58]
call fcn.00403740
mov byte [esp + 0x280], 7
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0xac]
push edx
call dword [eax + 0x24]
mov byte [esp + 0x280], 9
push 0
push ebx
lea ecx, [esp + 0x5c]
call fcn.0040292b
cmp dword [esp + 0xbc], 0
jne 0x408288
push str.Location
lea ecx, [esp + 0xac]
call fcn.00403723
push str.BrowseFolderSelectFolder
lea ecx, [esp + 0x58]
call fcn.00403740
mov byte [esp + 0x280], 0xa
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0xc8]
push edx
call dword [eax + 0x24]
mov byte [esp + 0x280], 0xc
push 0
push ebx
lea ecx, [esp + 0x5c]
call fcn.0040292b
cmp dword [esp + 0xd8], 0
jne 0x4082e2
push str.Select_Folder
lea ecx, [esp + 0xc8]
call fcn.00403723
push str.BrowseFolderName
lea ecx, [esp + 0x58]
call fcn.00403740
mov byte [esp + 0x280], 0xd
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0xe4]
push edx
call dword [eax + 0x24]
mov byte [esp + 0x280], 0xf
push 0
push ebx
lea ecx, [esp + 0x5c]
call fcn.0040292b
cmp dword [esp + 0xf4], 0
jne 0x40833c
push str.Folder_name:
lea ecx, [esp + 0xe4]
call fcn.00403723
call fcn.004331f0
push esi
lea ecx, [esp + 0x58]
test al, al
jne 0x4083d4
call fcn.00403740
mov byte [esp + 0x280], 0x10
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0xb0]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x160]
push eax
lea esi, [esp + 0x68]
lea eax, [esp + 0x84]
call fcn.0044329e
mov byte [esp + 0x280], 0x11
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x98]
call fcn.00403486
mov byte [esp + 0x280], 0x10
push esi
push ebx
lea ecx, [esp + 0x78]
call fcn.0040292b
mov byte [esp + 0x280], 0xf
push esi
push ebx
lea ecx, [esp + 0x5c]
call fcn.0040292b
jmp 0x40845c
call fcn.00403740
mov byte [esp + 0x280], 0x12
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x15c]
push eax
lea eax, [esp + 0x64]
lea edi, [esp + 0x80]
call fcn.004752e2
mov byte [esp + 0x280], 0x13
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x98]
call fcn.00403486
mov byte [esp + 0x280], 0x12
push esi
push 1
mov ecx, edi
call fcn.0040292b
mov byte [esp + 0x280], 0xf
push esi
push 1
lea ecx, [esp + 0x5c]
call fcn.0040292b
mov edi, dword [esp + 0x14]
xor ebx, ebx
inc ebx
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x408474
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408588
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x90]
call fcn.00433500
mov byte [esp + 0x280], 0x14
lea esi, [esp + 0x1c]
lea ebx, [esp + 0x54]
call fcn.0040897c
mov byte [esp + 0x280], 0x15
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.00433500
mov byte [esp + 0x280], 0x17
mov eax, esi
push eax
call fcn.0041bb1d
lea esi, [esp + 0x38]
call fcn.00408944
mov dword [esp + 0x14], eax
mov byte [esp + 0x280], 0x18
lea esi, [esp + 0x1c]
lea ebx, [esp + 0x70]
call fcn.00408944
mov byte [esp + 0x280], 0x19
mov ecx, dword [esp + 0x14]
call fcn.00403218
mov bl, al
mov byte [esp + 0x280], 0x18
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x24]
call fcn.0040292b
mov byte [esp + 0x280], 0x17
push esi
push 1
lea ecx, [esp + 0x40]
call fcn.0040292b
test bl, bl
je 0x408561
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x408542
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408561
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x98]
call fcn.00403486
mov byte [esp + 0x280], 0x14
lea eax, [esp + 0x70]
push eax
call fcn.00408871
mov byte [esp + 0x280], 0xf
lea eax, [esp + 0x54]
push eax
call fcn.00408871
xor ebx, ebx
inc ebx
push dword [edi + 0xc]
lea eax, [esp + 0x1b0]
push eax
call fcn.0040c1e3
mov byte [esp + 0x280], 0x1a
lea eax, [edi + 0x284]
push eax
lea esi, [esp + 0x1b0]
call fcn.0040c278
push dword [edi + 8]
lea eax, [esp + 0x170]
push dword [edi + 0xc]
push eax
call fcn.004607ca
mov byte [esp + 0x280], 0x1b
xor esi, esi
cmp dword [esp + 0xa0], esi
je 0x4086ac
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x104]
push 0x138d
push eax
call fcn.0045e4fd
mov byte [esp + 0x280], 0x1c
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov byte [esp + 0x280], 0x1b
lea eax, [esp + 0xfc]
push eax
call fcn.00402e6a
cmp byte [esp + 0x264], 0
je 0x408640
cmp dword [esp + 0x240], esi
je 0x408640
lea eax, [esp + 0x22c]
jmp 0x4086c6
push 0x49fc88
lea ecx, [esp + 0x58]
call fcn.00403740
mov byte [esp + 0x280], 0x1d
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x104]
push 0x7d9
push eax
call fcn.0045e4fd
mov byte [esp + 0x280], 0x1e
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov byte [esp + 0x280], 0x1d
lea eax, [esp + 0xfc]
push eax
call fcn.00402e6a
mov byte [esp + 0x280], 0x1b
push esi
push ebx
lea ecx, [esp + 0x5c]
call fcn.0040292b
jmp 0x4086db
cmp byte [esp + 0x264], 0
je 0x4086db
cmp dword [esp + 0x25c], esi
je 0x4086db
lea eax, [esp + 0x248]
push ebx
push eax
lea eax, [edi + 0x284]
push eax
lea ecx, [esp + 0x178]
call fcn.00460841
push str.AiPredefOpen
lea ecx, [esp + 0x74]
call fcn.00403740
mov byte [esp + 0x280], 0x1f
push str.Return
lea ecx, [esp + 0x58]
call fcn.00403740
mov byte [esp + 0x280], 0x20
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x58]
push eax
push 0x7d1
lea eax, [esp + 0x108]
push eax
call fcn.0045e4fd
mov byte [esp + 0x280], 0x22
push esi
push ebx
lea ecx, [esp + 0x5c]
call fcn.0040292b
mov byte [esp + 0x280], 0x23
push esi
push ebx
lea ecx, [esp + 0x78]
call fcn.0040292b
mov ecx, dword [edi + 8]
lea edx, [esp + 0xfc]
mov dword [esp + 0x138], ebx
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov byte [esp + 0x280], 0x1b
lea eax, [esp + 0xfc]
push eax
call fcn.00402e6a
push dword [esp + 0x10]
lea eax, [esp + 0x100]
push 0x138f
push eax
call fcn.0045e54a
mov byte [esp + 0x280], 0x24
mov edi, dword [edi + 8]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 8]
mov byte [esp + 0x280], 0x1b
lea eax, [esp + 0xfc]
push eax
call fcn.00402e6a
mov byte [esp + 0x280], 0x1a
lea eax, [esp + 0x16c]
push eax
call fcn.00405ca0
mov byte [esp + 0x280], 0xf
lea eax, [esp + 0x1ac]
push eax
call fcn.004043cc
mov byte [esp + 0x280], 0xc
push esi
push ebx
lea ecx, [esp + 0xe8]
call fcn.0040292b
mov byte [esp + 0x280], 9
push esi
push ebx
lea ecx, [esp + 0xcc]
call fcn.0040292b
mov byte [esp + 0x280], 6
push esi
push ebx
lea ecx, [esp + 0xb0]
call fcn.0040292b
mov byte [esp + 0x280], 5
push esi
push ebx
lea ecx, [esp + 0x158]
call fcn.0040292b
or dword [esp + 0x280], 0xffffffff
push esi
push ebx
lea ecx, [esp + 0x94]
call fcn.0040292b
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00476b4b
mov esp, ebp
pop ebp
ret 8