Function at 0x410bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov esi, ecx
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x415290
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
lea edi, [esi + 8]
cmp edi, ecx
je 0x410c7e
mov ebx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 0xf
mov eax, ecx
jbe 0x410c3b
mov eax, dword [ecx]
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
jae 0x410c5c
sub esp, 0xc
mov cl, byte [ebp - 0x58]
mov byte [esp + 4], cl
mov dword [esp + 8], eax
mov dword [esp], ebx
mov ecx, edi
call fcn.00407150
jmp 0x410c75
cmp ecx, 0x10
jb 0x410c63
mov edi, dword [edi]
mov dword [esi + 0x18], ebx
push ebx
push eax
push edi
call fcn.004c4690
add esp, 0xc
mov byte [edi + ebx], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edx
lea edi, [ebp - 0x58]
push ecx
push edi
call fcn.00443000
add esp, 8
cmp dword [ebp - 0x44], 7
jbe 0x410c9a
mov edi, dword [ebp - 0x58]
sub esp, 0x1c
movaps xmm0, xmmword [0x4e7a60]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esi + 0x28], eax
cmp eax, 0xffffffff
je 0x410ce3
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov byte [esi + 0x38], 1
jmp 0x410db1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
je 0x410db1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], 0
push str.Could_not_open__
push eax
call fcn.00401560
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
cmp dword [edx + 0x14], 0xf
jbe 0x410d23
mov edx, dword [edx]
push ecx
push edx
push eax
call fcn.00407250
add esp, 0xc
push 0x4f907b
push eax
call fcn.00401560
add esp, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
push dword [ebp - 0x28]
push eax
call fcn.0040fbf0
add esp, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
jbe 0x410d5d
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x10], 1
push eax
push ecx
push dword [ebp - 0x20]
call fcn.00407250
add esp, 0xc
push eax
call fcn.00401370
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
mov edi, dword [ebp - 0x24]
jb 0x410db1
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x410da7
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x410e04
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x410dea
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x410de0
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x410e04
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.004a8843
add esp, 8
cmp edi, 0xffffffff
setne al
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.004cc578
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x410e4b
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x410e41
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x410e62
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
add esp, 0x1c
pop ebp
ret
call fcn.004cc578
nop word [eax + eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x410eb0
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x410ea6
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x410eb5
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.004a8843
add esp, 8
add esp, 0x1c
pop ebp
ret
call fcn.004cc578
int3