Function at 0x4dbe91
Capabilities:
Check if file exists

Disassembly:
push 0xec
mov eax, 0x5f6843
call fcn.0059bbd7
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.00435a2c
add esp, 0x18
mov edx, ebx
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00416984
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.00435b82
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4dbf55
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 0x4dbf97
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
call fcn.004e31f9
lea ecx, [ebp - 0xbc]
call fcn.00404812
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc4]
push ecx
push dword [ecx]
jmp 0x4dc609
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.00435b82
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4dc004
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.0041e461
pop ecx
test eax, eax
jne 0x4dc01a
cmp dword [ebp - 0xc4], eax
jne 0x4dc01c
mov bl, 1
lea ecx, [ebp - 0x44]
call fcn.0040b67e
test bl, bl
je 0x4dc064
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 0x4dc066
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.0043ba5e
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 0x4dc5a5
lea ecx, [ebp - 0xf8]
call fcn.00405236
test eax, eax
je 0x4dc5a5
push 0x627e3e
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 0x4dc2e6
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.0043bf56
mov ecx, dword [ebp - 0xc4]
cmp ecx, 1
jne 0x4dc1d5
push str.path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x8c]
mov ecx, eax
call fcn.0043bffa
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.00435a2c
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00416984
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.00435b82
lea ecx, [ebp - 0x8c]
jmp 0x4dc2c3
cmp ecx, 2
jne 0x4dc24b
push str.path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x74]
mov ecx, eax
call fcn.0043bffa
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.00435a2c
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00416984
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.00435b82
lea ecx, [ebp - 0x74]
jmp 0x4dc2c3
cmp ecx, 3
jne 0x4dc2d6
push str.path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.0043bffa
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.00435a2c
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.00416984
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.00435b82
lea ecx, [ebp - 0x5c]
add esp, 0x18
push eax
call fcn.0040b0ac
lea ecx, [ebp - 0x28]
call fcn.0040b67e
jmp 0x4dc2db
cmp ecx, 4
je 0x4dc305
lea ecx, [ebp - 0xdc]
call fcn.004049b2
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xdc]
call fcn.004049b7
test al, al
je 0x4dc121
jmp 0x4dc494
push str.skin_path
mov ecx, esi
call fcn.00405401
lea edx, [ebp - 0x8c]
mov ecx, eax
call fcn.0043bffa
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.00435a2c
add esp, 0x18
mov edx, ebx
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.00416984
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.00435b82
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.0043bffa
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.00435a2c
add esp, 0x18
mov edx, ebx
mov byte [ebp - 4], 0xe
mov ecx, eax
call fcn.00416984
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.00435b82
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.0043bffa
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.00435a2c
add esp, 0x18
mov edx, esi
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.00416984
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.00435b82
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 0x4dc4f9
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.004e4935
push eax
add eax, 0x10
lea ecx, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.004e498f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040b67e
cmp dword [ebp - 0x64], 0
je 0x4dc54f
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.004e4935
push eax
add eax, 0x10
lea ecx, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.004e498f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040b67e
cmp dword [ebp - 0x4c], 0
je 0x4dc5a5
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.004e4935
push eax
add eax, 0x10
lea ecx, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xd4]
push eax
call fcn.004e498f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040b67e
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
call fcn.004e31f9
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.0041e5e6
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.0046a8cf
push 0x40
push dword [ebp - 0xcc]
call fcn.004047e6
pop ecx
mov eax, edi
pop ecx
call fcn.0059bb81
ret