Function at 0x4b08b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa8
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c0130
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], 0
push ebx
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x4b0928
sub esp, 0xc
mov al, byte [ebp - 0x94]
lea ecx, [ebp - 0x7c]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], esi
call fcn.00405590
jmp 0x4b0944
mov eax, esi
mov dword [ebp - 0x6c], esi
lea ecx, [ebp - 0x7c]
add eax, esi
push eax
push ebx
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x7c], 0
lea eax, [ebp - 0x94]
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], 0
mov word [ebp - 0x94], 0
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x20], eax
push eax
push edi
call fcn.0042e9e0
add esp, 8
test al, al
je 0x4b0aee
mov esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
cmp esi, 7
jbe 0x4b0990
mov eax, dword [ebp - 0x7c]
jmp 0x4b0993
lea eax, [ebp - 0x7c]
mov ebx, dword [ebp + 0xc]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4b0a5d
lea edi, [ecx - 1]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], 0
cmp ecx, edi
cmovb edi, ecx
cmp edi, 7
jbe 0x4b09ec
sub esp, 0xc
mov cl, byte [ebp - 0xb0]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x40]
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00405590
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp + 0xc]
cmp esi, 8
jae 0x4b0a0c
jmp 0x4b0a3f
lea ecx, [edi + edi]
mov dword [ebp - 0x30], edi
lea edx, [ebp - 0x40]
push ecx
push eax
push edx
call fcn.0061e340
add esp, 0xc
mov word [ebp + edi*2 - 0x40], 0
cmp esi, 8
jb 0x4b0a3f
mov eax, dword [ebp - 0x7c]
lea ecx, [esi + esi + 2]
cmp ecx, 0x1000
jb 0x4b0a35
mov ecx, eax
mov eax, dword [eax - 4]
add ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 0x20
jae 0x4b108f
add esi, esi
add esi, 0x25
mov ecx, esi
push ecx
push eax
call fcn.005d319e
add esp, 8
movsd xmm0, qword [ebp - 0x30]
movsd xmm2, qword [ebp - 0x40]
movsd xmm1, qword [ebp - 0x38]
movsd qword [ebp - 0x6c], xmm0
movsd qword [ebp - 0x74], xmm1
movsd qword [ebp - 0x7c], xmm2
push ebx
call fcn.005d3244
add esp, 4
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
mov edx, ecx
cmovb edx, eax
test edx, edx
je 0x4b0aa2
cmp dword [ebp - 0x80], 7
jbe 0x4b0a86
mov esi, dword [ebp - 0x94]
mov dword [ebp - 0x20], esi
xor esi, esi
nop dword [eax + eax]
mov edi, dword [ebp - 0x20]
movzx edi, word [edi + esi*2]
cmp di, word [ebx + esi*2]
jne 0x4b0aa8
inc esi
cmp edx, esi
jne 0x4b0a90
mov bl, 1
cmp ecx, eax
je 0x4b0af0
mov ecx, dword [ebp - 0x6c]
cmp dword [ebp - 0x68], 7
jbe 0x4b0aba
mov eax, dword [ebp - 0x7c]
test ecx, ecx
jne 0x4b0ac1
jmp 0x4b0aee
lea eax, [ebp - 0x7c]
test ecx, ecx
je 0x4b0aee
mov edx, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp word [edx], 0x3a
je 0x4b0ade
add edx, 2
dec ecx
jne 0x4b0ad0
jmp 0x4b0aee
sub edx, eax
sar edx, 1
lea ecx, [edx + 1]
cmp ecx, 2
jae 0x4b0b7f
xor ebx, ebx
mov ecx, dword [ebp - 0x80]
cmp ecx, 8
jb 0x4b0b2e
mov eax, dword [ebp - 0x94]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b0b24
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b1077
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [ebp - 0x68]
cmp ecx, 8
jb 0x4b0b69
mov eax, dword [ebp - 0x7c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b0b5f
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b1083
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edx, 2
jb 0x4b0ba9
cmp word [eax + edx*2 - 4], 0x5c
jne 0x4b0aee
lea edi, [ebp - 0x60]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
jmp 0x4b0bc8
test eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
je 0x4b0c52
mov dword [ebp - 0x98], ecx
lea edi, [ebp - 0x60]
mov eax, dword [eax + edx*2 - 2]
lea ebx, [ebp - 0x60]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], 0
mov dword [ebp - 0x60], eax
push ebx
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x4b0c1e
mov dword [ebp - 0x10], 8
sub esp, 0xc
mov al, byte [ebp - 0xb0]
lea ecx, [ebp - 0x40]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], esi
call fcn.00405590
jmp 0x4b0c3a
mov eax, esi
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0x40]
add eax, esi
push eax
push edi
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x40], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4b0cda
mov edx, dword [ebp - 0x2c]
cmp edx, 7
jbe 0x4b0c7c
mov ecx, dword [ebp - 0x40]
jmp 0x4b0c7f
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x10], 8
call fcn.005d78db
mov dword [eax], 0x16
call fcn.006207d0
jmp 0x4b0aee
lea ecx, [ebp - 0x40]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4b0cda
cmp edx, eax
jne 0x4b0cc0
mov dword [ebp - 0x10], 9
sub esp, 0x10
mov al, byte [ebp - 0xb0]
lea ecx, [ebp - 0x40]
mov byte [esp + 4], al
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x65857a
mov dword [esp], 1
call fcn.0040b010
jmp 0x4b0cd3
lea edx, [eax + 1]
mov dword [ebp - 0x30], edx
mov word [ecx + eax*2], 0x5c
mov word [ecx + eax*2 + 2], 0
mov dword [ebp - 0x10], 9
cmp dword [ebp - 0x2c], 7
jbe 0x4b0ce5
mov eax, dword [ebp - 0x40]
jmp 0x4b0ce8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x10], 9
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4b0dfe
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 0x4b0d2f
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 0x4b0dfe
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0xa0], 0
mov word [ebp - 0xb0], 0
mov dword [ebp - 0x10], 0xa
push ecx
push eax
call fcn.0042e9e0
add esp, 8
mov esi, dword [ebp - 0x28]
test al, al
je 0x4b0ed1
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x4b0ed1
cmp dword [ebp - 0x9c], 7
lea edx, [ebp - 0xb0]
jbe 0x4b0da6
mov edx, dword [ebp - 0xb0]
cmp word [edx + ecx*2 - 2], 0x5c
not esi
jne 0x4b0dc6
lea eax, [ecx - 1]
mov dword [ebp - 0xa0], eax
mov word [edx + ecx*2 - 2], 0
mov ecx, dword [ebp - 0xa0]
add esi, ecx
add esi, dword [ebp - 0x6c]
cmp esi, dword [ebp - 0x84]
jne 0x4b0ed1
cmp esi, ecx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], 0
cmovae esi, ecx
cmp dword [ebp - 0x80], 7
jbe 0x4b0e05
mov eax, dword [ebp - 0x94]
jmp 0x4b0e0b
xor ebx, ebx
jmp 0x4b0f38
lea eax, [ebp - 0x94]
cmp esi, 7
mov dword [ebp - 0x24], ecx
jbe 0x4b0e2e
sub esp, 0xc
mov cl, byte [ebp - 0x64]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x58]
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00405590
jmp 0x4b0e49
lea ecx, [esi + esi]
mov dword [ebp - 0x48], esi
lea edx, [ebp - 0x58]
push ecx
push eax
push edx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x58], 0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x10], 0xb
lea ecx, [ebp - 0xb0]
lea edx, [ebp - 0x58]
push eax
push ecx
mov dword [ebp - 0x28], edx
push edx
call fcn.0047afd0
add esp, 0xc
cmp dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x44]
mov ebx, eax
sete bh
cmp ecx, 8
jb 0x4b0eb5
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b0eab
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b10bf
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
and bl, bh
je 0x4b0ed1
mov esi, dword [ebp - 0x84]
cmp dword [ebp - 0x68], 7
jbe 0x4b0f7c
mov edi, dword [ebp - 0x7c]
jmp 0x4b0f7f
xor ebx, ebx
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x28], ebx
cmp ecx, 8
jb 0x4b0f1e
mov eax, dword [ebp - 0xb0]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b0f0d
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b10a7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x10], 4
call fcn.0040e440
push dword [ebp - 0x20]
call fcn.0040f9e0
mov ebx, dword [ebp - 0x28]
add esp, 4
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4b0af0
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b0f6d
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b109b
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
jmp 0x4b0af0
lea edi, [ebp - 0x7c]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], 0
sub esi, ecx
jb 0x4b10b3
cmp dword [ebp - 0x80], 7
jbe 0x4b0fac
mov eax, dword [ebp - 0x94]
jmp 0x4b0fb2
lea eax, [ebp - 0x94]
lea eax, [eax + ecx*2]
cmp esi, 7
jbe 0x4b0fee
mov dword [ebp - 0x10], 0xa
sub esp, 0xc
mov cl, byte [ebp - 0x64]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x58]
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xb4], edi
call fcn.00405590
mov edi, dword [ebp - 0xb4]
mov esi, dword [ebp - 0x24]
jmp 0x4b1009
lea ecx, [esi + esi]
mov dword [ebp - 0x48], esi
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x58], 0
mov eax, dword [ebp - 0x98]
cmp dword [ebp - 0x44], 7
lea eax, [edi + eax*2]
jbe 0x4b101e
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0xc
push esi
push eax
push dword [ebp - 0x28]
call fcn.005dcc34
add esp, 0xc
mov ecx, dword [ebp - 0x44]
test eax, eax
sete bl
cmp ecx, 8
jb 0x4b0ed3
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b1068
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b10cb
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
jmp 0x4b0ed3
mov dword [ebp - 0x10], 6
call fcn.006207e0
mov dword [ebp - 0x10], 7
call fcn.006207e0
mov dword [ebp - 0x10], 0
call fcn.006207e0
mov dword [ebp - 0x10], 5
call fcn.006207e0
mov dword [ebp - 0x10], 3
call fcn.006207e0
mov dword [ebp - 0x10], 0xa
call fcn.005e9a00
mov dword [ebp - 0x10], 1
call fcn.006207e0
mov dword [ebp - 0x10], 2
call fcn.006207e0
nop word [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.0061de80
nop dword [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.0061de80
nop dword [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.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4b118e
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b1184
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b11a7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], 0
add esp, 0x1c
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4b11ee
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b11e4
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b1207
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], 0
add esp, 0x1c
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov ecx, dword [ebp - 0x9c]
cmp ecx, 8
jb 0x4b1254
mov eax, dword [ebp - 0xb0]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b124a
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b1266
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
call fcn.0040e440
push dword [ebp - 0x20]
call fcn.0040f9e0
add esp, 0x20
pop ebp
ret
call fcn.006207e0
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
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4b12be
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b12b4
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b12d7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], 0
add esp, 0x1c
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov ecx, dword [ebp - 0x80]
cmp ecx, 8
jb 0x4b1321
mov eax, dword [ebp - 0x94]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b1317
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b135d
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [ebp - 0x68]
cmp ecx, 8
jb 0x4b1358
mov eax, dword [ebp - 0x7c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4b134e
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4b135d
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x1c
pop ebp
ret
call fcn.006207e0
int3