Function at 0x464d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x674014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp ebx, 7
jbe 0x464da8
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
jne 0x464da8
movzx ecx, word [edi + 6]
xor eax, eax
test cx, cx
mov esi, edi
cmove esi, eax
test esi, esi
je 0x464d69
movzx edx, word [esi + 4]
cmp edx, 0x10
jb 0x464da5
cmp dword [esi], edx
jb 0x464da5
test dl, 7
jne 0x464da5
mov word [ebp - 0x34], cx
lea eax, [edx - 0x10]
sub ebx, edx
add edx, edi
mov dword [ebp - 0x28], edx
jmp 0x464d76
mov word [ebp - 0x34], cx
add ebx, 0xfffffff8
lea ecx, [edi + 8]
mov dword [ebp - 0x28], ecx
lea ecx, [esi + 8]
lea edx, [edi + 4]
test esi, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], edx
cmove ecx, edx
cmp eax, 0x103
ja 0x464da5
mov edx, eax
shr edx, 2
movzx ecx, word [ecx]
cmp edx, ecx
jb 0x464da5
cmp dword [ebp + 0x14], 1
jne 0x464dc2
test cx, cx
je 0x464dc2
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd6f3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x44], ecx
mov cl, byte [0x68455c]
cmp eax, 3
ja 0x464eae
lea eax, [ebx + 0x10]
cmp eax, 0xf8
ja 0x464eae
and cl, 1
je 0x464eae
xor eax, eax
cmp word [ebp - 0x34], 0
setne al
lea ecx, [ebx + eax*8]
add ecx, 8
cmp ecx, 0xf8
ja 0x464eae
mov dword [ebp - 0x3c], eax
push 0x100
mov dword [ebp - 0x2c], ecx
call fcn.005dc726
add esp, 4
mov dword [eax], fcn.0041a350
xorps xmm0, xmm0
movups xmmword [eax + 0xc], xmm0
movups xmmword [eax + 0x1c], xmm0
movups xmmword [eax + 0x2c], xmm0
movups xmmword [eax + 0x3c], xmm0
movups xmmword [eax + 0x4c], xmm0
movups xmmword [eax + 0x5c], xmm0
movups xmmword [eax + 0x6c], xmm0
movups xmmword [eax + 0x7c], xmm0
movups xmmword [eax + 0x8c], xmm0
movups xmmword [eax + 0x9c], xmm0
movups xmmword [eax + 0xac], xmm0
movups xmmword [eax + 0xbc], xmm0
movups xmmword [eax + 0xcc], xmm0
movups xmmword [eax + 0xdc], xmm0
movups xmmword [eax + 0xec], xmm0
mov dword [eax + 0xfc], 0
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
movzx ecx, word [ebp - 0x34]
mov word [eax + 0xe], cx
test cx, cx
je 0x464ea7
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx*8 + 8]
lea ecx, [eax + 0xc]
mov word [ecx], dx
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x464ed0
push 0x24
call fcn.005dc726
add esp, 4
mov ecx, eax
movzx eax, word [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
mov edx, ebx
push eax
push dword [ebp - 0x38]
push ebx
call fcn.00464b80
add esp, 0xc
test ebx, ebx
je 0x464ee9
mov ecx, dword [ebp - 0x2c]
call fcn.00465140
push ebx
push dword [ebp - 0x28]
push eax
call fcn.005df8f0
add esp, 0xc
test esi, esi
je 0x464f53
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
cmp word [eax + 4], 0x10
je 0x464f47
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
add eax, 0x10
mov dword [ebp - 0x28], eax
add edi, 0x10
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
movzx eax, word [eax + 4]
add eax, 0xfffffff0
push eax
push edi
push dword [ebp - 0x28]
call fcn.005df8f0
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], 8
jmp 0x464f5d
mov dword [ebp - 0x28], 4
mov eax, dword [ebp - 0x40]
movzx ebx, word [eax]
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov ecx, dword [ebp - 0x28]
mov word [eax + ecx], bx
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4650a9
lea eax, [eax*4]
lea edi, [eax + eax*4]
push edi
call fcn.005dc726
add esp, 4
mov ebx, eax
add eax, edi
mov dword [ebp - 0x38], eax
xor esi, esi
nop word cs:[eax + eax]
lea ecx, [ebx + esi]
call fcn.00480ef0
add esi, 0x14
cmp edi, esi
jne 0x464fb0
cmp word [ebp - 0x44], 0
je 0x46510a
mov dword [ebp - 0x4c], edi
xor edi, edi
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x2c]
jmp 0x465015
mov dword [ebp - 0x28], esp
push eax
push eax
mov eax, esp
push ecx
push esi
push eax
call fcn.00481370
add esp, 0xc
lea esi, [ebp - 0x24]
mov ecx, esi
call fcn.00480f20
mov esp, dword [ebp - 0x28]
mov ecx, ebx
push esi
call fcn.00481010
mov ecx, esi
call fcn.004810a0
inc edi
add ebx, 0x14
cmp dword [ebp - 0x44], edi
mov eax, dword [ebp - 0x2c]
je 0x465107
mov eax, dword [eax + 0x20]
mov esi, dword [eax + edi*4]
push esi
call fcn.00481350
add esp, 4
test al, al
jne 0x4650af
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x464fd7
mov dword [ebp - 0x28], esp
push eax
push eax
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov eax, esp
mov dword [eax], 0
test esi, esi
je 0x46509c
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
inc edx
cmp edx, 2
jb 0x465082
mov dword [ebp - 0x3c], eax
call fcn.004b63a0
mov eax, dword [ebp - 0x30]
push dword [eax]
call fcn.004d0370
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [ecx], 0
cmp esi, 0xffffffff
je 0x465092
mov dword [ecx], esi
mov esi, eax
call fcn.004b63a0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x40]
call fcn.004f1b32
mov esp, dword [ebp - 0x34]
jmp 0x464fe9
xor ebx, ebx
xor ecx, ecx
jmp 0x46510d
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov edi, dword [ebp - 0x48]
test edi, edi
je 0x4650e5
cmp dword [ebp - 0x38], edi
mov ebx, dword [ebp - 0x4c]
je 0x4650d9
mov esi, edi
add esi, 0xffffffec
lea ecx, [esi + ebx]
call fcn.004810a0
add ebx, 0xffffffec
jne 0x4650cc
push edi
call fcn.005dc756
add esp, 4
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x464dae
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
jmp 0x464dae
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
mov esi, esp
sub esp, 0xc
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov esp, esi
mov esi, dword [ebp + 8]
mov dword [esi], ebx
jmp 0x464dae