Function at 0x41a153
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b0e50
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x4dc104]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
push 0x448
push 8
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [esp + 0x28], ebx
xor esi, esi
mov dword [esp + 0x470], esi
cmp ebx, esi
je 0x41a213
or dword [ebx + 0x20], 0xffffffff
xor eax, eax
mov word [ebx + 0x32], ax
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov byte [ebx + 0x30], 0
mov byte [ebx + 0x31], 0
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x208
stosd dword es:[edi], eax
lea eax, [ebx + 0x23a]
push esi
push eax
call fcn.0048ad80
add esp, 0xc
xor eax, eax
lea edi, [ebx + 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x18], ebx
jmp 0x41a219
mov dword [esp + 0x18], esi
mov ebx, esi
or dword [esp + 0x470], 0xffffffff
cmp ebx, esi
jne 0x41a22d
push 0xe
pop edi
jmp 0x41a51c
cmp dword [ebp + 0xc], esi
jne 0x41a28f
push ebx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov edi, eax
cmp edi, 0x720
jne 0x41a245
xor edi, edi
cmp edi, esi
jne 0x41a50c
push dword [esp + 0x24]
lea edx, [ebx + 0x23a]
mov eax, 0x208
call fcn.00418310
lea edi, [ebx + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
add dword [edi], 0x2ac18000
push esi
push 0x2710
adc dword [edi + 4], 0xfe624e21
push dword [edi + 4]
push dword [edi]
call fcn.0048c210
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x41a29a
mov esi, dword [ebp + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x10]
push eax
push ebx
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
mov edi, eax
cmp edi, esi
jne 0x41a50c
push dword [ebx + 0x10]
lea eax, [ebx + 0x32]
call fcn.00419ad6
mov edi, eax
pop ecx
cmp edi, esi
jne 0x41a50c
push esi
lea eax, [ebx + 0x32]
push 0x80
cmp dword [ebp + 0xc], esi
je 0x41a436
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x20], eax
cmp eax, 0xffffffff
jne 0x41a303
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41a50c
lea ecx, [esp + 0x1c]
push ecx
push eax
push 4
pop esi
call fcn.0041846a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41a50c
cmp dword [esp + 0x1c], 1
je 0x41a32c
push 0x57
pop edi
jmp 0x41a50c
lea eax, [esp + 0x450]
push eax
push dword [ebx + 0x20]
push 0x10
pop esi
call fcn.0041846a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41a50c
mov edi, dword [ebp + 0xc]
push 4
pop ecx
lea esi, [esp + 0x450]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x41a324
lea eax, [ebx + 0x28]
push eax
push dword [ebx + 0x20]
push 8
pop esi
call fcn.0041846a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41a50c
lea eax, [ebx + 0x23a]
push eax
push dword [ebx + 0x20]
mov esi, 0x208
call fcn.0041846a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41a50c
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x41a2f6
test eax, eax
je 0x41a324
sub eax, 0x224
mov dword [esp + 0x18], eax
je 0x41a324
xor edx, edx
mov ecx, 0x420
div ecx
test edx, edx
jne 0x41a324
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0x20]
mov esi, 0x420
call fcn.0041846a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41a50c
test byte [esp + 0x30], 1
je 0x41a426
lea eax, [esp + 0x2c]
push 1
push eax
mov esi, ebx
call fcn.00419c55
mov edi, eax
pop ecx
pop ecx
cmp edi, 0x15e
jne 0x41a41a
mov byte [esp + 0x17], 1
xor edi, edi
sub dword [esp + 0x18], 0x420
jne 0x41a3d4
jmp 0x41a429
push 0x57
pop edi
test edi, edi
jne 0x41a50c
jmp 0x41a4cc
push 2
push esi
xor esi, esi
inc esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x20], eax
cmp eax, 0xffffffff
je 0x41a2f6
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], esi
push dword [ebx + 0x20]
push 4
pop ebx
call fcn.004184ac
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41a508
mov eax, dword [esp + 0x18]
push eax
push dword [eax + 0x20]
push 0x10
pop ebx
call fcn.004184ac
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41a508
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x28]
push ecx
push dword [eax + 0x20]
push 8
pop ebx
call fcn.004184ac
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41a508
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x23a]
push ecx
push dword [eax + 0x20]
mov ebx, 0x208
call fcn.004184ac
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41a508
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
test edi, edi
jne 0x41a50c
movzx eax, byte [esp + 0x17]
neg eax
sbb eax, eax
and eax, 0x15e
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00488689
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x18]
mov esi, ebx
call fcn.00419a57
push ebx
call fcn.00418521
pop ecx
xor esi, esi
mov eax, dword [esp + 0x20]
mov dword [eax], esi
mov eax, edi
jmp 0x41a4e4