Function at 0x461510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60fb3c
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c4], ecx
call fcn.0045f390
push eax
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x98
call fcn.0045b210
mov dword [ebp - 0x1c8], 0
call fcn.00427f50
mov ecx, eax
call fcn.0040f960
mov dword [ebp - 0x1cc], eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0040f670
mov ecx, eax
call fcn.00402cf0
mov ecx, eax
call fcn.0053d5e0
mov dword [ebp - 4], 0
push 0x62ff04
lea ecx, [ebp - 0x28]
push ecx
push str._bg_down_
mov edx, dword [ebp - 0x1cc]
push edx
lea eax, [ebp - 0x1c0]
push eax
call fcn.0040b6e0
add esp, 0xc
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x270], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x270]
push edx
lea eax, [ebp - 0x148]
push eax
call fcn.0040b660
add esp, 0xc
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x268], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x268]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.0040b6a0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x148]
call fcn.0040df90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c0]
call fcn.0040df90
lea ecx, [ebp - 0x70]
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461789
call fcn.00478bf0
mov dword [ebp - 0x1d0], eax
push 1
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1d0]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x264], al
cmp byte [ebp - 0x264], 1
je 0x461676
jmp 0x461769
push 0x62ff28
lea ecx, [ebp - 0xe8]
call fcn.00408710
mov byte [ebp - 4], 6
push 0x62ff24
lea ecx, [ebp - 0x100]
call fcn.00408710
mov byte [ebp - 4], 7
call fcn.00478bf0
mov dword [ebp - 0x1d4], eax
push str.bg_down_path_is_not_exist
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x258], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x258]
push eax
push 0x1ec
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0x100]
push edx
lea ecx, [ebp - 0x30c]
call fcn.0040d3b0
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x250]
call fcn.0040b2d0
push eax
mov ecx, dword [ebp - 0x1d4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1d4]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30c]
call fcn.0040e140
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24c]
call fcn.00405df0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x100]
call fcn.00405e70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe8]
call fcn.00405e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040df90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040df90
jmp 0x461ef8
push 0
lea ecx, [ebp - 0x70]
call fcn.00413b20
push eax
call fcn.0045f710
add esp, 8
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x58], 0x4e
mov dword [ebp - 0x54], 0x68
mov dword [ebp - 0x50], 0x50
mov dword [ebp - 0x4c], 0x2b
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x98
call fcn.0041c5b0
add eax, 0x70
mov dword [ebp - 0x1d8], eax
push 1
mov ecx, dword [ebp - 0x1c8]
push ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x1d8]
push edx
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
call edx
push 1
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x98
call fcn.0041c5b0
add eax, 4
mov ecx, eax
call fcn.0045f660
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x98
call fcn.0041c5b0
mov ecx, eax
call fcn.0046e6f0
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x98
call fcn.0041c5b0
mov dword [ebp - 0x1dc], eax
push 0
mov eax, dword [ebp - 0x1dc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1dc]
mov eax, dword [edx + 0x58]
call eax
push 0
mov ecx, dword [ebp - 0x1c4]
add ecx, 0x98
call fcn.0041c5b0
mov ecx, eax
call fcn.00467060
call fcn.0045f390
push eax
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa0
call fcn.0045b210
push 0x62ffa8
lea ecx, [ebp - 0x28]
push ecx
push str._bg_up_
mov edx, dword [ebp - 0x1cc]
push edx
lea eax, [ebp - 0x190]
push eax
call fcn.0040b6e0
add esp, 0xc
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x244]
push edx
lea eax, [ebp - 0x1a8]
push eax
call fcn.0040b660
add esp, 0xc
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x23c]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.0040b6a0
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1a8]
call fcn.0040df90
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x190]
call fcn.0040df90
lea ecx, [ebp - 0x88]
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461a9f
call fcn.00478bf0
mov dword [ebp - 0x1e0], eax
push 1
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1e0]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x238], al
cmp byte [ebp - 0x238], 1
je 0x46197d
jmp 0x461a70
push 0x62ffc8
lea ecx, [ebp - 0xb8]
call fcn.00408710
mov byte [ebp - 4], 0xf
push 0x62ffc4
lea ecx, [ebp - 0xd0]
call fcn.00408710
mov byte [ebp - 4], 0x10
call fcn.00478bf0
mov dword [ebp - 0x1fc], eax
push str.bg_up_path_is_not_exist
lea ecx, [ebp - 0x200]
push ecx
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x234], eax
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x230], edx
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x230]
push eax
push 0x1ff
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xd0]
push edx
lea ecx, [ebp - 0x3a4]
call fcn.0040d3b0
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x260]
call fcn.0040b2d0
push eax
mov ecx, dword [ebp - 0x1fc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1fc]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x3a4]
call fcn.0040e140
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x200]
call fcn.00405df0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xd0]
call fcn.00405e70
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xb8]
call fcn.00405e70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
call fcn.0040df90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040df90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040df90
jmp 0x461ef8
push 0
lea ecx, [ebp - 0x88]
call fcn.00413b20
push eax
call fcn.0045f710
add esp, 8
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x48], 0x4e
mov dword [ebp - 0x44], 0x68
mov dword [ebp - 0x40], 0x50
mov dword [ebp - 0x3c], 0x2b
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa0
call fcn.0041c5b0
add eax, 0x70
mov dword [ebp - 0x1e4], eax
push 1
mov ecx, dword [ebp - 0x1c8]
push ecx
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x1e4]
push edx
mov eax, dword [ebp - 0x1e4]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
call edx
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa0
call fcn.0041c5b0
mov ecx, eax
call fcn.0046e6f0
push 1
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa0
call fcn.0041c5b0
add eax, 4
mov ecx, eax
call fcn.0045f660
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa0
call fcn.0041c5b0
mov dword [ebp - 0x1e8], eax
push 0
mov eax, dword [ebp - 0x1e8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1e8]
mov eax, dword [edx + 0x58]
call eax
push 0
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa0
call fcn.0041c5b0
mov ecx, eax
call fcn.00467060
call fcn.0045f390
push eax
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa8
call fcn.0045b210
push 0x630044
lea ecx, [ebp - 0x28]
push ecx
push str._bg_rb_
mov edx, dword [ebp - 0x1cc]
push edx
lea eax, [ebp - 0x160]
push eax
call fcn.0040b6e0
add esp, 0xc
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
mov dword [ebp - 0x208], ecx
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x208]
push edx
lea eax, [ebp - 0x178]
push eax
call fcn.0040b660
add esp, 0xc
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x210], ecx
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x210]
push edx
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b6a0
add esp, 0xc
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x178]
call fcn.0040df90
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x160]
call fcn.0040df90
lea ecx, [ebp - 0xa0]
call fcn.00413b20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461dc7
call fcn.00478bf0
mov dword [ebp - 0x1ec], eax
push 1
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1ec]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x214], al
cmp byte [ebp - 0x214], 1
je 0x461c96
jmp 0x461d89
push 0x630060
lea ecx, [ebp - 0x118]
call fcn.00408710
mov byte [ebp - 4], 0x18
push 0x6300ac
lea ecx, [ebp - 0x130]
call fcn.00408710
mov byte [ebp - 4], 0x19
call fcn.00478bf0
mov dword [ebp - 0x1f0], eax
push 0x6300b0
lea ecx, [ebp - 0x228]
push ecx
call fcn.0040b7b0
add esp, 8
mov dword [ebp - 0x218], eax
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], edx
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x21c]
push eax
push 0x211
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x130]
push edx
lea ecx, [ebp - 0x43c]
call fcn.0040d3b0
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x224]
call fcn.0040b2d0
push eax
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1f0]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x43c]
call fcn.0040e140
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x228]
call fcn.00405df0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x130]
call fcn.00405e70
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x118]
call fcn.00405e70
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xa0]
call fcn.0040df90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
call fcn.0040df90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040df90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040df90
jmp 0x461ef8
push 0
lea ecx, [ebp - 0xa0]
call fcn.00413b20
push eax
call fcn.0045f710
add esp, 8
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x38], 0x5a
mov dword [ebp - 0x34], 0x5b
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], 0x19
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa8
call fcn.0041c5b0
add eax, 0x70
mov dword [ebp - 0x1f4], eax
push 1
mov ecx, dword [ebp - 0x1c8]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x1f4]
push edx
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
call edx
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa8
call fcn.0041c5b0
mov ecx, eax
call fcn.0046e790
push 1
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa8
call fcn.0041c5b0
add eax, 4
mov ecx, eax
call fcn.0045f660
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa8
call fcn.0041c5b0
mov dword [ebp - 0x1f8], eax
push 0
mov eax, dword [ebp - 0x1f8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1f8]
mov eax, dword [edx + 0x58]
call eax
push 0
mov ecx, dword [ebp - 0x1c4]
add ecx, 0xa8
call fcn.0041c5b0
mov ecx, eax
call fcn.00467060
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xa0]
call fcn.0040df90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
call fcn.0040df90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040df90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040df90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret