Function at 0x41d070
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6148b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov word [ebp - 0x18], si
mov ecx, dword [0x6f6320]
mov byte [ebp - 4], 1
cmp ecx, esi
mov edi, ecx
jne 0x41d0b7
mov edi, 0x6f6324
mov ecx, str._s_sinstall.rdf
test ecx, ecx
je 0x41d1cb
cmp edi, esi
je 0x41d1cb
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x41d1cb
push esi
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x30], si
call fcn.00402ce0
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], si
call fcn.004023c0
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0040e5b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00401070
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.004023b0
push eax
call fcn.005e519b
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x41d1a2
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x40]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x28]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x34]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e519b
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401070
mov eax, dword [ebp - 0x1c]
xor esi, esi
cmp eax, esi
jne 0x41d1d2
lea eax, [ebp - 0x18]
push esi
push 0x8000080
push 4
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41d20c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push esi
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x41d2c2
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x41d2bb
push str._em:updateURL_
push esi
call fcn.005e5290
add esp, 8
test eax, eax
je 0x41d274
mov edx, dword [0x6c7abc]
mov dword [eax], edx
mov ecx, dword [0x6c7ac0]
mov dword [eax + 4], ecx
mov edx, dword [0x6c7ac4]
mov dword [eax + 8], edx
mov cx, word [0x6c7ac8]
mov word [eax + 0xc], cx
push str.__em:updateURL_
push esi
call fcn.005e5290
add esp, 8
test eax, eax
je 0x41d2b4
mov edx, dword [0x6c7a9c]
mov dword [eax], edx
mov ecx, dword [0x6c7aa0]
mov dword [eax + 4], ecx
mov edx, dword [0x6c7aa4]
mov dword [eax + 8], edx
mov cx, word [0x6c7aa8]
mov word [eax + 0xc], cx
mov dl, byte [0x6c7aaa]
mov byte [eax + 0xe], dl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d1ef