Function at 0x405bf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a56a
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x477010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x38
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00424990
add esp, 0xc
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x405c43
mov edx, dword [esi]
lea ecx, [ebp - 0xdc]
call fcn.004041f0
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
push edi
mov dword [ebp - 0x70], vtable.CFile.0
mov dword [ebp - 0x68], 0
call fcn.0040a2b0
xorps xmm0, xmm0
mov word [ebp - 0x40], 1
movlpd qword [ebp - 0x48], xmm0
cmp dword [edi + 0x14], 8
jb 0x405c84
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x405cce
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
jmp 0x405cd1
mov edx, dword [ebp - 0x48]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xc8]
cmp ecx, 8
jb 0x405d1b
lea edx, [ecx*2 + 2]
mov ecx, dword [ebp - 0xdc]
mov eax, ecx
cmp edx, 0x1000
jb 0x405d0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40612c
push edx
push ecx
call fcn.00420a59
mov edx, dword [ebp - 0x48]
add esp, 8
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], cx
test eax, eax
je 0x405dfc
cmp eax, 0xffffffff
je 0x405dfc
mov eax, dword [esi + 0x10]
xorps xmm0, xmm0
add al, al
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x1c], al
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edx
push eax
lea eax, [ebp - 0x70]
movq qword [ebp - 0x28], xmm0
push eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x14], edx
call fcn.00411a50
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 0xf
mov eax, dword [eax + 0x24]
test eax, eax
je 0x405deb
mov eax, dword [eax + 8]
test eax, eax
je 0x405deb
cmp eax, 0xffffffff
je 0x405deb
mov edi, dword [ebp - 0x7c]
mov eax, dword [edi + 8]
test eax, eax
je 0x405deb
cmp eax, 0xffffffff
je 0x405deb
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405deb
cmp eax, 0xffffffff
je 0x405deb
push 8
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00411fe0
test al, al
je 0x405deb
cmp dword [esi + 0x14], 8
jb 0x405dc4
mov esi, dword [esi]
movzx eax, byte [ebp - 0x1c]
mov ecx, edi
push eax
push esi
call fcn.00411fe0
test al, al
je 0x405deb
push dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
push 0
push edi
call fcn.00412050
mov byte [ebp - 0x71], 1
test al, al
jne 0x405def
mov byte [ebp - 0x71], 0
lea ecx, [ebp - 0x38]
call fcn.00411b10
jmp 0x406104
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.0041eab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
push 9
xor eax, eax
mov dword [ebp - 0xb4], 0
push str._failed:
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
call fcn.0040bcc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
push 9
xor eax, eax
mov dword [ebp - 0x9c], 0
push str._ERROR_:
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
call fcn.0040bcc0
push str.CreateFile
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.0040aa60
mov dword [ebp - 0x84], 0
xor ecx, ecx
mov dword [ebp - 0x80], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x94], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x84], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x10c]
call fcn.0040a950
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0xf4]
call fcn.0040a950
add esp, 8
push eax
mov byte [ebp - 4], 8
call fcn.00401b50
mov edx, dword [ebp - 0xe0]
cmp edx, 8
jb 0x405f3f
mov ecx, dword [ebp - 0xf4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406131
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0xf8]
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
cmp edx, 8
jb 0x405f9c
mov ecx, dword [ebp - 0x10c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406136
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x80]
xor eax, eax
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
cmp edx, 8
jb 0x405ff6
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405fec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40613b
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x98]
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
cmp edx, 8
jb 0x406050
mov ecx, dword [ebp - 0xac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406046
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406140
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0xb0]
xor eax, eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
cmp edx, 8
jb 0x4060ad
mov ecx, dword [ebp - 0xc4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4060a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406145
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
cmp edx, 8
jb 0x406100
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4060f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40614a
push edx
push ecx
call fcn.00420a59
add esp, 8
mov byte [ebp - 0x71], 0
lea ecx, [ebp - 0x70]
call fcn.0040c8a0
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420a25
mov esp, ebp
pop ebp
ret 8
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
int3