Function at 0x435b30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4939f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb20
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x24], 0
movzx eax, byte [ebp - 0x31]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041d0a0
lea ecx, [ebp - 0x50]
call fcn.00423200
mov dword [ebp - 4], 0
movzx ecx, byte [ebp - 0x25]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0041d0a0
lea ecx, [ebp - 0xa0]
call fcn.00423200
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00439500
add esp, 0xc
cmp dword [0x4c11e8], 0
je 0x435ddb
movzx edx, byte [ebp - 0x26]
push edx
lea ecx, [ebp - 0x158]
call fcn.0041d0a0
lea ecx, [ebp - 0x158]
call fcn.00423200
mov byte [ebp - 4], 2
movzx eax, byte [ebp - 0x27]
push eax
lea ecx, [ebp - 0x140]
call fcn.0041d0a0
lea ecx, [ebp - 0x140]
call fcn.00423200
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
cmp ecx, 2
jne 0x435c13
mov dword [ebp - 0x54], 1
jmp 0x435c1a
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0
je 0x435c3c
push 0
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x158]
push eax
push 0
call fcn.00443960
jmp 0x435cf1
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
cmp ecx, 1
jne 0x435c53
mov dword [ebp - 0x58], 1
jmp 0x435c5a
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
je 0x435c79
push 0
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x158]
push eax
push 0
call fcn.00443b00
jmp 0x435cf1
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
cmp ecx, 4
jne 0x435c90
mov dword [ebp - 0x5c], 1
jmp 0x435c97
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 0
je 0x435cb6
push 0
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x158]
push eax
push 0
call fcn.00443bd0
jmp 0x435cf1
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
cmp ecx, 3
jne 0x435ccd
mov dword [ebp - 0x60], 1
jmp 0x435cd4
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
je 0x435cf1
push 0
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x158]
push eax
push 0
call fcn.00443a30
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 0
jne 0x435d0f
mov dword [ebp - 0x64], 1
jmp 0x435d16
mov dword [ebp - 0x64], 0
mov dl, byte [ebp - 0x64]
mov byte [ebp - 0x11], dl
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x435d54
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x128], ecx
lea edx, [ebp - 0x50]
cmp edx, dword [ebp - 0x128]
je 0x435d54
xor eax, eax
mov byte [ebp - 0x12], al
movzx ecx, byte [ebp - 0x12]
push ecx
lea edx, [ebp - 0x158]
push edx
lea ecx, [ebp - 0x50]
call fcn.00422a50
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x435d72
mov dword [ebp - 0x68], 1
jmp 0x435d79
mov dword [ebp - 0x68], 0
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x13], cl
movzx edx, byte [ebp - 0x13]
test edx, edx
jne 0x435dbd
lea eax, [ebp - 0x140]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xa0]
cmp ecx, dword [ebp - 0xa8]
je 0x435dbd
xor edx, edx
mov byte [ebp - 0x14], dl
movzx eax, byte [ebp - 0x14]
push eax
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00422a50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call fcn.004230d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x158]
call fcn.004230d0
movzx edx, byte [ebp - 0x28]
push edx
lea ecx, [ebp - 0x20c]
call fcn.0041d0a0
lea ecx, [ebp - 0x20c]
call fcn.00423200
mov byte [ebp - 4], 4
movzx eax, byte [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x170]
call fcn.0041d0a0
lea ecx, [ebp - 0x170]
call fcn.00423200
mov byte [ebp - 4], 5
mov dword [ebp - 0x38], 0
cmp dword [0x4c11e4], 0
je 0x43618f
movzx ecx, byte [ebp - 0x29]
push ecx
lea ecx, [ebp - 0x254]
call fcn.0041d0a0
lea ecx, [ebp - 0x254]
call fcn.00423200
mov byte [ebp - 4], 6
movzx edx, byte [ebp - 0x2a]
push edx
lea ecx, [ebp - 0x23c]
call fcn.0041d0a0
lea ecx, [ebp - 0x23c]
call fcn.00423200
mov byte [ebp - 4], 7
push 0x800
push 0
lea eax, [ebp - 0xb2c]
push eax
call fcn.00459400
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.00422d20
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
push ecx
lea edx, [ebp - 0xb2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x6c], 0x4a4e60
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xb2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x435fdf
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x10], edx
push 0x4a4e70
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x435fdf
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [edx], cx
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0xb2c]
push eax
call fcn.00464b86
add esp, 4
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
push edx
lea eax, [ebp - 0xb2c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00401490
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.00464b86
add esp, 4
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0x70]
push edx
lea ecx, [ebp - 0x254]
call fcn.00401490
lea ecx, [ebp - 0xa0]
call fcn.00422d20
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xb2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
call fcn.00464b86
add esp, 4
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00401490
cmp dword [ebp - 0x38], 0
je 0x436171
movzx ecx, byte [ebp - 0x2b]
push ecx
lea ecx, [ebp - 0x224]
call fcn.0041d0a0
lea ecx, [ebp - 0x224]
call fcn.00423200
mov byte [ebp - 4], 8
push 0
push 0
push 0
lea edx, [ebp - 0x224]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1ac], esp
lea eax, [ebp - 0x20c]
push eax
call fcn.00401840
call fcn.0041fbc0
add esp, 0x28
push 0x4a4e74
lea ecx, [ebp - 0x26c]
call fcn.0040db90
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x2cc]
push eax
call fcn.0041f5f0
add esp, 0xc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xcc], ecx
lea edx, [ebp - 0x170]
cmp edx, dword [ebp - 0xcc]
je 0x436098
xor eax, eax
mov byte [ebp - 0x15], al
movzx ecx, byte [ebp - 0x15]
push ecx
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0x170]
call fcn.00422c90
lea ecx, [ebp - 0x2cc]
call fcn.004230d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x26c]
call fcn.004230d0
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x2e4]
push edx
call fcn.0041f5f0
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xd0], eax
lea ecx, [ebp - 0x50]
cmp ecx, dword [ebp - 0xd0]
je 0x4360fc
xor edx, edx
mov byte [ebp - 0x16], dl
movzx eax, byte [ebp - 0x16]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00422c90
lea ecx, [ebp - 0x2e4]
call fcn.004230d0
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x2fc]
push ecx
call fcn.0041f5f0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0xd4], edx
lea eax, [ebp - 0xa0]
cmp eax, dword [ebp - 0xd4]
je 0x436157
xor ecx, ecx
mov byte [ebp - 0x17], cl
movzx edx, byte [ebp - 0x17]
push edx
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00422c90
lea ecx, [ebp - 0x2fc]
call fcn.004230d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x224]
call fcn.004230d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x23c]
call fcn.004230d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x254]
call fcn.004230d0
movzx ecx, byte [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1f4]
call fcn.0041d0a0
lea ecx, [ebp - 0x1f4]
call fcn.00423200
mov byte [ebp - 4], 0xa
movzx edx, byte [ebp - 0x32]
push edx
lea ecx, [ebp - 0x1dc]
call fcn.0041d0a0
lea ecx, [ebp - 0x1dc]
call fcn.00423200
mov byte [ebp - 4], 0xb
cmp dword [0x4c11e0], 0
je 0x436467
movzx eax, byte [ebp - 0x2e]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.0041d0a0
lea ecx, [ebp - 0x1c4]
call fcn.00423200
mov byte [ebp - 4], 0xc
movzx ecx, byte [ebp - 0x2f]
push ecx
lea ecx, [ebp - 0x1a0]
call fcn.0041d0a0
lea ecx, [ebp - 0x1a0]
call fcn.00423200
mov byte [ebp - 4], 0xd
movzx edx, byte [ebp - 0x30]
push edx
lea ecx, [ebp - 0x188]
call fcn.0041d0a0
lea ecx, [ebp - 0x188]
call fcn.00423200
mov byte [ebp - 4], 0xe
push 0
push 0
push 0
lea eax, [ebp - 0x1c4]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1a4], esp
lea edx, [ebp - 0x50]
push edx
call fcn.00401840
call fcn.0041fbc0
add esp, 0x28
push str.crnfile.rnt.can
lea ecx, [ebp - 0x284]
call fcn.0040db90
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x1c4]
push ecx
lea edx, [ebp - 0x314]
push edx
call fcn.0041f5f0
add esp, 0xc
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0x1a0]
cmp ecx, dword [ebp - 0xd8]
je 0x4362cd
xor edx, edx
mov byte [ebp - 0x18], dl
movzx eax, byte [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x1a0]
call fcn.00422c90
lea ecx, [ebp - 0x314]
call fcn.004230d0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x284]
call fcn.004230d0
push str.crsfile.rnt.can
lea ecx, [ebp - 0x29c]
call fcn.0040db90
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x29c]
push edx
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x32c]
push ecx
call fcn.0041f5f0
add esp, 0xc
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xdc], edx
lea eax, [ebp - 0x188]
cmp eax, dword [ebp - 0xdc]
je 0x436354
xor ecx, ecx
mov byte [ebp - 0x19], cl
movzx edx, byte [ebp - 0x19]
push edx
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x188]
call fcn.00422c90
lea ecx, [ebp - 0x32c]
call fcn.004230d0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x29c]
call fcn.004230d0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0xe0], ecx
lea edx, [ebp - 0x1f4]
cmp edx, dword [ebp - 0xe0]
je 0x43639e
xor eax, eax
mov byte [ebp - 0x1a], al
movzx ecx, byte [ebp - 0x1a]
push ecx
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x1f4]
call fcn.00422a50
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x1dc]
cmp ecx, dword [ebp - 0xe4]
je 0x4363d4
xor edx, edx
mov byte [ebp - 0x1b], dl
movzx eax, byte [ebp - 0x1b]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x1dc]
call fcn.00422a50
lea edx, [ebp - 0x1a0]
mov dword [ebp - 0xe8], edx
lea eax, [ebp - 0x50]
cmp eax, dword [ebp - 0xe8]
je 0x436404
xor ecx, ecx
mov byte [ebp - 0x1c], cl
movzx edx, byte [ebp - 0x1c]
push edx
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x50]
call fcn.00422a50
lea ecx, [ebp - 0x188]
mov dword [ebp - 0xec], ecx
lea edx, [ebp - 0xa0]
cmp edx, dword [ebp - 0xec]
je 0x43643a
xor eax, eax
mov byte [ebp - 0x1d], al
movzx ecx, byte [ebp - 0x1d]
push ecx
lea edx, [ebp - 0x188]
push edx
lea ecx, [ebp - 0xa0]
call fcn.00422a50
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x188]
call fcn.004230d0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1a0]
call fcn.004230d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c4]
call fcn.004230d0
lea ecx, [ebp - 0x50]
call fcn.00422d20
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
push eax
call fcn.004324b0
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.00422d20
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436503
push str..bak11
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2b4]
push ecx
call fcn.0040be10
add esp, 0xc
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2b4]
call fcn.00422d20
mov dword [ebp - 0xf8], eax
lea ecx, [ebp - 0x50]
call fcn.00422d20
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0xf8]
push edx
mov eax, dword [ebp - 0xfc]
push eax
call fcn.004467a0
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2b4]
call fcn.004230d0
lea ecx, [ebp - 0x50]
call fcn.00422d20
mov dword [ebp - 0x100], eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x100]
push edx
call fcn.0044b370
add esp, 0x10
test eax, eax
je 0x436535
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0xa0]
call fcn.00422d20
mov dword [ebp - 0x104], eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x104]
push edx
call fcn.0044b490
add esp, 0x10
test eax, eax
je 0x43656a
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [0x4c11e0], 0
je 0x4365e0
lea ecx, [ebp - 0x1f4]
call fcn.00422d20
mov dword [ebp - 0x108], eax
lea ecx, [ebp - 0x50]
call fcn.00422d20
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call fcn.004467a0
add esp, 8
lea ecx, [ebp - 0x1dc]
call fcn.00422d20
mov dword [ebp - 0x110], eax
lea ecx, [ebp - 0xa0]
call fcn.00422d20
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.004467a0
add esp, 8
cmp dword [0x4c11e4], 0
je 0x436627
cmp dword [ebp - 0x38], 0
je 0x436627
lea ecx, [ebp - 0x20c]
call fcn.00422d20
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x170]
call fcn.00422d20
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.004467a0
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1dc]
call fcn.004230d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1f4]
call fcn.004230d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x170]
call fcn.004230d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20c]
call fcn.004230d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.004230d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004230d0
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret