Function at 0x454930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x614
push ebx
push ebp
push esi
mov esi, dword [esp + 0x624]
push edi
mov dword [esp + 0x20], ecx
mov eax, dword [esi]
mov dword [esp + 0x14], 2
test eax, eax
jne 0x454956
lea eax, [esi + 4]
lea ecx, [esp + 0x224]
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x42c]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.0054fba9
mov eax, dword [esp + 0x640]
add esp, 0x14
test eax, eax
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
je 0x454cb2
mov ebp, dword [esp + 0x634]
mov eax, dword [esi]
test eax, eax
jne 0x4549a2
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4549ef
mov eax, dword [esi]
test eax, eax
jne 0x4549b7
lea eax, [esi + 4]
mov ecx, dword [esp + 0x630]
push ecx
mov ecx, dword [esp + 0x630]
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jg 0x4549ef
mov eax, dword [esi]
test eax, eax
jne 0x4549da
lea eax, [esi + 4]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jle 0x454f7d
test ebp, ebp
je 0x454a20
push ebp
call fcn.0054e46e
add esp, 4
test eax, eax
je 0x454a20
mov eax, dword [esi]
test eax, eax
jne 0x454a09
lea eax, [esi + 4]
push eax
push ebp
call fcn.0055054c
add esp, 8
test eax, eax
je 0x454f7d
jmp 0x454c21
cmp dword [esp + 0x14], 0xa
jle 0x454c21
mov al, byte [esp + 0x13]
test al, al
jne 0x454c21
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ebx, [edx + 0xa]
call fcn.0054e46e
lea ecx, [esp + 0x428]
mov edi, eax
push ecx
call fcn.0054e46e
lea edx, [esp + 0x2c]
add edi, eax
push edx
call fcn.0054e46e
add edi, eax
lea eax, [esp + 0x230]
push eax
call fcn.0054e46e
add edi, eax
lea ecx, [edi + edi + 0x20]
push ecx
call fcn.0056649c
mov edi, eax
add esp, 0x14
test edi, edi
je 0x454ac2
lea edx, [esp + 0x224]
lea eax, [esp + 0x24]
push edx
push ebx
lea ecx, [esp + 0x42c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push str._s_s_s__ld_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov ecx, esi
push edi
call fcn.00402b60
push edi
call fcn.005664c5
add esp, 4
mov eax, dword [esi]
test eax, eax
jne 0x454acb
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454b1e
mov eax, dword [esi]
test eax, eax
jne 0x454ae0
lea eax, [esi + 4]
mov ecx, dword [esp + 0x630]
push ecx
mov ecx, dword [esp + 0x630]
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jg 0x454b1e
mov eax, dword [esi]
test eax, eax
jne 0x454b03
lea eax, [esi + 4]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jg 0x454b1e
mov byte [esp + 0x13], 1
jmp 0x454c21
cmp ebx, 0x64
jle 0x454c1c
mov al, byte [esp + 0x12]
test al, al
jne 0x454c1c
lea edx, [esp + 0x18]
lea ebp, [ebx + 0x64]
push edx
call fcn.0054e46e
mov edi, eax
lea eax, [esp + 0x428]
push eax
call fcn.0054e46e
lea ecx, [esp + 0x2c]
add edi, eax
push ecx
call fcn.0054e46e
lea edx, [esp + 0x230]
add edi, eax
push edx
call fcn.0054e46e
add edi, eax
lea eax, [edi + edi + 0x20]
push eax
call fcn.0056649c
mov edi, eax
add esp, 0x14
test edi, edi
je 0x454bba
lea ecx, [esp + 0x224]
lea edx, [esp + 0x24]
push ecx
push ebp
lea eax, [esp + 0x42c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push str._s_s_s__ld_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov ecx, esi
push edi
call fcn.00402b60
push edi
call fcn.005664c5
add esp, 4
mov eax, dword [esi]
test eax, eax
jne 0x454bc3
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454c13
mov eax, dword [esi]
test eax, eax
jne 0x454bd8
lea eax, [esi + 4]
mov edx, dword [esp + 0x630]
mov ecx, dword [esp + 0x62c]
push edx
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jg 0x454c13
mov eax, dword [esi]
test eax, eax
jne 0x454bfb
lea eax, [esi + 4]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jg 0x454c13
mov byte [esp + 0x12], 1
jmp 0x454c15
mov ebx, ebp
mov ebp, dword [esp + 0x634]
inc ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x18]
push eax
call fcn.0054e46e
lea ecx, [esp + 0x428]
mov edi, eax
push ecx
call fcn.0054e46e
lea edx, [esp + 0x2c]
add edi, eax
push edx
call fcn.0054e46e
add edi, eax
lea eax, [esp + 0x230]
push eax
call fcn.0054e46e
add edi, eax
lea ecx, [edi + edi + 0x20]
push ecx
call fcn.0056649c
mov edi, eax
add esp, 0x14
test edi, edi
je 0x454ca9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x224]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x42c]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push str._s_s_s__ld_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov ecx, esi
push edi
call fcn.00402b60
push edi
call fcn.005664c5
add esp, 4
inc dword [esp + 0x14]
jmp 0x454999
mov ebx, dword [esp + 0x634]
mov ebp, dword [esp + 0x14]
mov eax, dword [esi]
test eax, eax
jne 0x454cc6
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454cf6
mov eax, dword [esi]
test eax, eax
jne 0x454cdb
lea eax, [esi + 4]
mov ecx, dword [esp + 0x630]
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jle 0x454f7d
test ebx, ebx
je 0x454d27
push ebx
call fcn.0054e46e
add esp, 4
test eax, eax
je 0x454d27
mov eax, dword [esi]
test eax, eax
jne 0x454d10
lea eax, [esi + 4]
push eax
push ebx
call fcn.0055054c
add esp, 8
test eax, eax
je 0x454f7d
jmp 0x454ef3
cmp ebp, 0xa
jle 0x454ef3
mov al, byte [esp + 0x13]
test al, al
jne 0x454ef3
lea edx, [esp + 0x18]
lea ebx, [ebp + 0xa]
push edx
call fcn.0054e46e
mov edi, eax
lea eax, [esp + 0x428]
push eax
call fcn.0054e46e
lea ecx, [esp + 0x2c]
add edi, eax
push ecx
call fcn.0054e46e
lea edx, [esp + 0x230]
add edi, eax
push edx
call fcn.0054e46e
add edi, eax
lea eax, [edi + edi + 0x20]
push eax
call fcn.0056649c
mov edi, eax
add esp, 0x14
test edi, edi
je 0x454dc3
lea ecx, [esp + 0x224]
lea edx, [esp + 0x24]
push ecx
push ebx
lea eax, [esp + 0x42c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push str._s_s_s__ld_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov ecx, esi
push edi
call fcn.00402b60
push edi
call fcn.005664c5
add esp, 4
mov eax, dword [esi]
test eax, eax
jne 0x454dcc
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454e09
mov eax, dword [esi]
test eax, eax
jne 0x454de1
lea eax, [esi + 4]
mov edx, dword [esp + 0x630]
mov ecx, dword [esp + 0x20]
push edx
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jg 0x454e09
mov ebx, dword [esp + 0x634]
mov byte [esp + 0x13], 1
jmp 0x454ef3
cmp ebx, 0x64
jle 0x454ee3
mov al, byte [esp + 0x12]
test al, al
jne 0x454ee3
lea eax, [esp + 0x18]
lea ebp, [ebx + 0x64]
push eax
call fcn.0054e46e
lea ecx, [esp + 0x428]
mov edi, eax
push ecx
call fcn.0054e46e
lea edx, [esp + 0x2c]
add edi, eax
push edx
call fcn.0054e46e
add edi, eax
lea eax, [esp + 0x230]
push eax
call fcn.0054e46e
add edi, eax
lea ecx, [edi + edi + 0x20]
push ecx
call fcn.0056649c
mov edi, eax
add esp, 0x14
test edi, edi
je 0x454ea5
lea edx, [esp + 0x224]
lea eax, [esp + 0x24]
push edx
push ebp
lea ecx, [esp + 0x42c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push str._s_s_s__ld_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov ecx, esi
push edi
call fcn.00402b60
push edi
call fcn.005664c5
add esp, 4
mov eax, dword [esi]
test eax, eax
jne 0x454eae
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454ee1
mov eax, dword [esi]
test eax, eax
jne 0x454ec3
lea eax, [esi + 4]
mov ecx, dword [esp + 0x630]
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.004541f0
cmp eax, 0xffffffff
jg 0x454ee1
mov byte [esp + 0x12], 1
jmp 0x454ee3
mov ebx, ebp
inc ebx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x634]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
call fcn.0054e46e
mov edi, eax
lea eax, [esp + 0x428]
push eax
call fcn.0054e46e
lea ecx, [esp + 0x2c]
add edi, eax
push ecx
call fcn.0054e46e
lea edx, [esp + 0x230]
add edi, eax
push edx
call fcn.0054e46e
add edi, eax
lea eax, [edi + edi + 0x20]
push eax
call fcn.0056649c
mov edi, eax
add esp, 0x14
test edi, edi
je 0x454f77
lea ecx, [esp + 0x224]
lea edx, [esp + 0x24]
push ecx
push ebp
lea eax, [esp + 0x42c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push str._s_s_s__ld_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov ecx, esi
push edi
call fcn.00402b60
push edi
call fcn.005664c5
add esp, 4
inc ebp
jmp 0x454cbd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x614
ret 0x10