Function at 0x4d3ec5
Capabilities:
Check if file exists

Disassembly:
push 0xec
mov eax, 0x5ed9c0
call fcn.00593b07
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc4], edi
lea ecx, [ebp - 0xcc]
xor ebx, ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
call fcn.0040c38a
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], bl
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
lea ebx, [ebp - 0xbc]
push esi
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.0040b155
lea ecx, [ebp - 0x44]
call fcn.00430a1f
add esp, 0x18
mov edx, ebx
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.0041675b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00404812
sub esp, 0x18
lea eax, [ebp - 0xbc]
mov ecx, esp
xor ebx, ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x44]
call fcn.00430ab2
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4d3f89
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040b67e
test esi, esi
jne 0x4d3fcb
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
call fcn.004da75a
lea ecx, [ebp - 0xbc]
call fcn.00404812
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc4]
push ecx
push dword [ecx]
jmp 0x4d463d
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], bl
mov dword [ebp - 0xe8], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 4
push eax
sub esp, 0x18
mov dword [ebp - 0xc4], ebx
mov ecx, esp
lea eax, [ebp - 0xbc]
lea esi, [ebp - 0xe4]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x44]
call fcn.00430ab2
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4d4038
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.0041e238
pop ecx
test eax, eax
jne 0x4d404e
cmp dword [ebp - 0xc4], eax
jne 0x4d4050
mov bl, 1
lea ecx, [ebp - 0x44]
call fcn.0040b67e
test bl, bl
je 0x4d4098
push dword [ebp - 0xc4]
xor ebx, ebx
mov dword [ebp - 0x30], 0xf
push dword [ebp - 0xe4]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
call fcn.0040464f
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00409145
lea ecx, [ebp - 0x44]
call fcn.00404812
jmp 0x4d409a
xor ebx, ebx
push 6
lea ecx, [ebp - 0xf8]
call fcn.00404ba6
mov byte [ebp - 4], 5
lea eax, [ebp - 0xf8]
cmp dword [ebp - 0x90], 0x10
lea ecx, [ebp - 0xa4]
mov edx, dword [ebp - 0x94]
cmovae ecx, dword [ebp - 0xa4]
push eax
call fcn.0043698e
pop ecx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x8c], ax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x74], ax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ecx
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x94], eax
je 0x4d45d9
lea ecx, [ebp - 0xf8]
call fcn.00405236
test eax, eax
je 0x4d45d9
push 0x61ee2e
lea ecx, [ebp - 0x44]
call fcn.004045aa
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xf8]
call fcn.004057b0
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xf8]
call fcn.004057e8
jmp 0x4d431a
lea ecx, [ebp - 0xdc]
call fcn.004049ac
mov esi, eax
mov dword [ebp - 0xc4], ebx
push str.kind
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0xc4]
mov ecx, eax
call fcn.00436e86
mov ecx, dword [ebp - 0xc4]
cmp ecx, 1
jne 0x4d4209
push str.path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x8c]
mov ecx, eax
call fcn.00436f2a
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
lea esi, [ebp - 0x44]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040b155
lea ecx, [ebp - 0x28]
call fcn.00430a1f
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.0041675b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404812
sub esp, 0x18
mov eax, esi
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x28]
call fcn.00430ab2
lea ecx, [ebp - 0x8c]
jmp 0x4d42f7
cmp ecx, 2
jne 0x4d427f
push str.path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x74]
mov ecx, eax
call fcn.00436f2a
sub esp, 0x18
lea eax, [ebp - 0x74]
mov ecx, esp
lea esi, [ebp - 0x44]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040b155
lea ecx, [ebp - 0x28]
call fcn.00430a1f
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.0041675b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404812
sub esp, 0x18
mov eax, esi
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x28]
call fcn.00430ab2
lea ecx, [ebp - 0x74]
jmp 0x4d42f7
cmp ecx, 3
jne 0x4d430a
push str.path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.00436f2a
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
lea esi, [ebp - 0x44]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040b155
lea ecx, [ebp - 0x28]
call fcn.00430a1f
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.0041675b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404812
sub esp, 0x18
mov eax, esi
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x28]
call fcn.00430ab2
lea ecx, [ebp - 0x5c]
add esp, 0x18
push eax
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67e
jmp 0x4d430f
cmp ecx, 4
je 0x4d4339
lea ecx, [ebp - 0xdc]
call fcn.004049b2
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xdc]
call fcn.004049b7
test al, al
je 0x4d4155
jmp 0x4d44c8
push str.skin_path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x8c]
mov ecx, eax
call fcn.00436f2a
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
lea ebx, [ebp - 0x44]
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.0040b155
lea ecx, [ebp - 0x28]
call fcn.00430a1f
add esp, 0x18
mov edx, ebx
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.0041675b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404812
sub esp, 0x18
mov eax, ebx
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00404267
lea ecx, [ebp - 0x28]
call fcn.00430ab2
add esp, 0x18
lea ecx, [ebp - 0x8c]
push eax
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67e
push str.click_path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x74]
mov ecx, eax
call fcn.00436f2a
sub esp, 0x18
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.0040b155
lea ecx, [ebp - 0x28]
call fcn.00430a1f
add esp, 0x18
mov edx, ebx
mov byte [ebp - 4], 0xe
mov ecx, eax
call fcn.0041675b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404812
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
xor ebx, ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x28]
call fcn.00430ab2
add esp, 0x18
lea ecx, [ebp - 0x74]
push eax
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67e
push str.drag_path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.00436f2a
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
lea esi, [ebp - 0x44]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040b155
lea ecx, [ebp - 0x28]
call fcn.00430a1f
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.0041675b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404812
sub esp, 0x18
mov eax, esi
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404267
lea ecx, [ebp - 0x28]
call fcn.00430ab2
add esp, 0x18
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67e
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.00404812
cmp dword [ebp - 0x7c], 0
je 0x4d452d
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x2c], str.skin
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040b155
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0xcc]
call fcn.004dc092
push eax
add eax, 0x10
lea ecx, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.004dc0ec
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040b67e
cmp dword [ebp - 0x64], 0
je 0x4d4583
lea eax, [ebp - 0x74]
mov dword [ebp - 0x2c], str.click
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040b155
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0xcc]
call fcn.004dc092
push eax
add eax, 0x10
lea ecx, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.004dc0ec
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040b67e
cmp dword [ebp - 0x4c], 0
je 0x4d45d9
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x2c], str.drag
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040b155
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0xcc]
call fcn.004dc092
push eax
add eax, 0x10
lea ecx, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.004dc0ec
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040b67e
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
call fcn.004da75a
lea ecx, [ebp - 0x5c]
call fcn.0040b67e
lea ecx, [ebp - 0x74]
call fcn.0040b67e
lea ecx, [ebp - 0x8c]
call fcn.0040b67e
lea ecx, [ebp - 0xf8]
call fcn.00404dbc
lea ecx, [ebp - 0xe8]
call fcn.0041e3bd
lea ecx, [ebp - 0xa4]
call fcn.00404812
lea ecx, [ebp - 0xbc]
call fcn.00404812
mov eax, dword [ebp - 0xcc]
push eax
push dword [eax]
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004653ff
push 0x40
push dword [ebp - 0xcc]
call fcn.004047e6
pop ecx
mov eax, edi
pop ecx
call fcn.00593ab1
ret