Function at 0x405430
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a4e4
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x68]
mov esi, dword [ebp + 0xc]
push 0x38
push 0
push eax
call fcn.00424990
add esp, 0xc
mov dword [ebp - 0x68], vtable.CFile.0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push esi
call fcn.0040a2b0
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov word [ebp - 0x38], 1
jb 0x4054a0
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
je 0x4054ed
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 esi, eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ecx
jmp 0x4054f0
mov esi, dword [ebp - 0x40]
mov dword [ebp - 4], 0
test eax, eax
je 0x405876
cmp eax, 0xffffffff
je 0x405876
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x68]
movq qword [ebp - 0x20], xmm0
push eax
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
call fcn.00411a50
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40555a
cmp eax, 0xffffffff
je 0x40555a
push esi
push 0
push edi
lea ecx, [ebp - 0x30]
call fcn.00412050
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x69], al
call fcn.00411b10
jmp 0x405b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xfc]
call fcn.0041eab0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb4]
push 9
xor eax, eax
mov dword [ebp - 0xa4], 0
push str._failed:
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
call fcn.0040bcc0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x9c]
push 9
xor eax, eax
mov dword [ebp - 0x8c], 0
push str._ERROR_:
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.0040bcc0
push str.CreateFileMapping
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xa
call fcn.0040aa60
mov dword [ebp - 0x74], 0
xor ecx, ecx
mov dword [ebp - 0x70], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x74], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0xe4]
call fcn.0040a950
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
push ecx
mov edx, eax
lea ecx, [ebp - 0xcc]
call fcn.0040a950
add esp, 8
push eax
mov byte [ebp - 4], 0xd
call fcn.00401b50
mov edx, dword [ebp - 0xb8]
cmp edx, 8
jb 0x40569d
mov ecx, dword [ebp - 0xcc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405693
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bac
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0xd0]
xor eax, eax
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
cmp edx, 8
jb 0x4056fa
mov ecx, dword [ebp - 0xe4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4056f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bb1
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
cmp edx, 8
jb 0x405754
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40574a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bb6
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp edx, 8
jb 0x4057ab
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4057a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bbb
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0xa0]
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
cmp edx, 8
jb 0x405808
mov ecx, dword [ebp - 0xb4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4057fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bc0
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0xe8]
xor eax, eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
cmp edx, 8
jb 0x405865
mov ecx, dword [ebp - 0xfc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40585b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bc5
push edx
push ecx
call fcn.00420a59
add esp, 8
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x69], 0
call fcn.00411b10
jmp 0x405b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xfc]
call fcn.0041eab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
push 9
xor eax, eax
mov dword [ebp - 0x74], 0
push str._failed:
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
call fcn.0040bcc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
push 9
xor eax, eax
mov dword [ebp - 0x8c], 0
push str._ERROR_:
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.0040bcc0
push str.CreateFile
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.0040aa60
mov dword [ebp - 0xa4], 0
xor ecx, ecx
mov dword [ebp - 0xa0], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0xb4]
lea ecx, [ebp - 0xcc]
call fcn.0040a950
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0xe4]
call fcn.0040a950
add esp, 8
push eax
mov byte [ebp - 4], 6
call fcn.00401b50
mov edx, dword [ebp - 0xd0]
cmp edx, 8
jb 0x4059bc
mov ecx, dword [ebp - 0xe4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bca
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0xb8]
xor eax, eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
cmp edx, 8
jb 0x405a19
mov ecx, dword [ebp - 0xcc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405a0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bcf
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0xa0]
xor eax, eax
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
cmp edx, 8
jb 0x405a76
mov ecx, dword [ebp - 0xb4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405a6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bd4
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
cmp edx, 8
jb 0x405ad3
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405ac9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bd9
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
cmp edx, 8
jb 0x405b2d
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bde
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0xe8]
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp edx, 8
jb 0x405b80
mov ecx, dword [ebp - 0xfc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405be3
push edx
push ecx
call fcn.00420a59
add esp, 8
mov byte [ebp - 0x69], 0
lea ecx, [ebp - 0x68]
call fcn.0040c8a0
mov al, byte [ebp - 0x69]
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
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
int3