Function at 0x4d23fd
Capabilities:
Check if file exists

Disassembly:
push 0xec
mov eax, 0x5ebb8a
call fcn.00592017
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.0040c387
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.00430a1c
add esp, 0x18
mov edx, ebx
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00416758
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.00430aaf
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4d24c1
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040b67b
test esi, esi
jne 0x4d2503
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
call fcn.004d8c67
lea ecx, [ebp - 0xbc]
call fcn.00404812
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc4]
push ecx
push dword [ecx]
jmp 0x4d2b75
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.00430aaf
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4d2570
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.0041e235
pop ecx
test eax, eax
jne 0x4d2586
cmp dword [ebp - 0xc4], eax
jne 0x4d2588
mov bl, 1
lea ecx, [ebp - 0x44]
call fcn.0040b67b
test bl, bl
je 0x4d25d0
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 0x4d25d2
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.0043698b
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 0x4d2b11
lea ecx, [ebp - 0xf8]
call fcn.00405236
test eax, eax
je 0x4d2b11
push 0x61ce3e
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 0x4d2852
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.00436e83
mov ecx, dword [ebp - 0xc4]
cmp ecx, 1
jne 0x4d2741
push str.path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x8c]
mov ecx, eax
call fcn.00436f27
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.00430a1c
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00416758
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.00430aaf
lea ecx, [ebp - 0x8c]
jmp 0x4d282f
cmp ecx, 2
jne 0x4d27b7
push str.path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x74]
mov ecx, eax
call fcn.00436f27
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.00430a1c
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00416758
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.00430aaf
lea ecx, [ebp - 0x74]
jmp 0x4d282f
cmp ecx, 3
jne 0x4d2842
push str.path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.00436f27
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.00430a1c
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.00416758
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.00430aaf
lea ecx, [ebp - 0x5c]
add esp, 0x18
push eax
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67b
jmp 0x4d2847
cmp ecx, 4
je 0x4d2871
lea ecx, [ebp - 0xdc]
call fcn.004049b2
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xdc]
call fcn.004049b7
test al, al
je 0x4d268d
jmp 0x4d2a00
push str.skin_path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x8c]
mov ecx, eax
call fcn.00436f27
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.00430a1c
add esp, 0x18
mov edx, ebx
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.00416758
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.00430aaf
add esp, 0x18
lea ecx, [ebp - 0x8c]
push eax
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67b
push str.click_path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x74]
mov ecx, eax
call fcn.00436f27
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.00430a1c
add esp, 0x18
mov edx, ebx
mov byte [ebp - 4], 0xe
mov ecx, eax
call fcn.00416758
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.00430aaf
add esp, 0x18
lea ecx, [ebp - 0x74]
push eax
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67b
push str.drag_path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.00436f27
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.00430a1c
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.00416758
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.00430aaf
add esp, 0x18
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.00404812
cmp dword [ebp - 0x7c], 0
je 0x4d2a65
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.004da59f
push eax
add eax, 0x10
lea ecx, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.004da5f9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040b67b
cmp dword [ebp - 0x64], 0
je 0x4d2abb
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.004da59f
push eax
add eax, 0x10
lea ecx, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.004da5f9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040b67b
cmp dword [ebp - 0x4c], 0
je 0x4d2b11
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.004da59f
push eax
add eax, 0x10
lea ecx, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.004da5f9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040b67b
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
call fcn.004d8c67
lea ecx, [ebp - 0x5c]
call fcn.0040b67b
lea ecx, [ebp - 0x74]
call fcn.0040b67b
lea ecx, [ebp - 0x8c]
call fcn.0040b67b
lea ecx, [ebp - 0xf8]
call fcn.00404dbc
lea ecx, [ebp - 0xe8]
call fcn.0041e3ba
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.0046492f
push 0x40
push dword [ebp - 0xcc]
call fcn.004047e6
pop ecx
mov eax, edi
pop ecx
call fcn.00591fc1
ret