Function at 0x429c90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x50cce0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edx, edx
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x429cca
mov byte [edx], 0
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x429d27
mov ecx, dword [0x6d1ebc]
test ecx, ecx
je 0x429d1e
call fcn.0042701a
cmp esi, eax
jae 0x429d27
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov edi, ebx
mov esi, dword [ebx + 0x10]
cmp dword [ebx + 0x14], 7
jbe 0x429cff
mov edi, dword [ebx]
cmp esi, 7
ja 0x429d3c
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 8]
mov ebx, 7
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
jmp 0x429d9d
mov eax, 0x104
cmp esi, eax
jb 0x429ce4
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, esi
mov ecx, 0x7ffffffe
or ebx, 7
cmp ebx, 0x7ffffffe
cmovb ecx, ebx
lea eax, [ecx + ecx]
cmp ecx, 0x7ff
jb 0x429d7f
cmp ecx, 0x7fffffee
jae 0x429fd0
add eax, 0x25
push eax
call fcn.005d0220
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x429d8b
add eax, 2
push eax
call fcn.005d0220
add esp, 4
lea ecx, [esi + esi + 2]
mov dword [ebp - 0x3c], eax
push ecx
push edi
push eax
call fcn.0061e340
add esp, 0xc
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 2
push 1
push eax
call fcn.0042a080
add esp, 8
test al, al
jne 0x429e57
lea eax, [ebp - 0x3c]
push eax
push eax
call fcn.0042ae00
add esp, 8
test al, al
je 0x429e57
mov ecx, dword [0x6d1ebc]
mov edx, dword [ebp - 0x2c]
test ecx, ecx
je 0x429df3
mov dword [ebp - 0x20], edx
call fcn.0042701a
mov edx, dword [ebp - 0x20]
cmp edx, eax
jae 0x429e57
jmp 0x429dfc
mov eax, 0x104
cmp edx, eax
jae 0x429e57
cmp dword [ebp - 0x28], 7
lea eax, [ebp - 0x3c]
jbe 0x429e08
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.0042bbe0
add esp, 8
test al, al
je 0x429e57
lea eax, [ebp - 0x3c]
push 0xffdf
mov dword [ebp - 0x20], eax
push eax
call fcn.0042a080
add esp, 8
test al, al
jne 0x429e57
lea eax, [ebp - 0x3c]
push eax
push eax
call fcn.0042cd10
add esp, 8
test al, al
je 0x429e57
push 0xffff
lea eax, [ebp - 0x3c]
push eax
call fcn.0042a080
add esp, 8
test al, al
je 0x429e9d
xor ebx, ebx
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x429d29
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x429e8e
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x429fd5
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
jmp 0x429d29
cmp byte [ebp + 0xc], 0
je 0x429eea
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
mov bl, 1
cmp eax, ecx
je 0x429e59
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 7
jbe 0x429ebb
mov eax, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x14]
cmp edx, esi
jae 0x429f7e
mov dword [ebp - 0x10], 2
sub esp, 0xc
mov dl, byte [ebp - 0x40]
mov byte [esp + 4], dl
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00405590
mov bl, 1
jmp 0x429e59
cmp dword [ebp - 0x28], 7
jbe 0x429ef6
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
push 0
push 0x2110000
push 3
push 0
push 7
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x429e57
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x20]
inc edx
xor ecx, ecx
cmp edx, 2
jb 0x429f38
mov dword [ebp - 0x24], eax
call fcn.0040e440
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x429e57
mov dword [ebp - 0x10], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
mov eax, dword [ebp + 0x10]
jne 0x429fa3
test eax, eax
je 0x429f77
push eax
push dword [ebp - 0x20]
call fcn.004bb690
add esp, 8
test al, al
je 0x429fa3
mov al, 1
mov dword [ebp - 0x24], eax
jmp 0x429faa
cmp edx, 7
mov edi, ecx
jbe 0x429f87
mov edi, dword [ecx]
mov dword [ecx + 0x10], esi
lea ecx, [esi + esi]
push ecx
push eax
push edi
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
jmp 0x429e59
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
call fcn.0040e440
push dword [ebp - 0x20]
call fcn.0040f9e0
add esp, 4
cmp byte [ebp - 0x24], 0
jne 0x429ea3
jmp 0x429e57
call fcn.005e8c60
mov dword [ebp - 0x10], 1
call fcn.006207e0
nop word cs:[eax + eax]
nop dword [eax + eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0040e440
push dword [ebp - 0x20]
call fcn.0040f9e0
add esp, 0x20
pop ebp
ret