Function at 0x41bce2
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4b110d
call fcn.0049dfc4
sub esp, 0xd0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x58], esi
call fcn.00402f35
mov eax, dword [esi + 4]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c135
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x41bd52
inc eax
push eax
call fcn.0049e01f
mov esi, eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push ebx
push esi
call fcn.0049ec00
add esp, 0x10
cmp esi, ebx
jne 0x41bd5e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c135
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x41bd85
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00491430
pop ecx
jmp 0x41c135
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea ecx, [ebp - 0x54]
call fcn.00411399
push esi
mov dword [ebp - 4], ebx
call fcn.00491430
cmp dword [ebp - 0x48], ebx
pop ecx
je 0x41c129
push dword [ebp - 0x48]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x41c129
mov eax, vtable._zstring_class_ztraits_0__.0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov esi, 0x12c
cmp word [0x4e6c58], bx
mov ecx, 0x4e6c58
mov eax, ecx
je 0x41bdf8
inc eax
inc eax
cmp word [eax], bx
jne 0x41bdf1
sub eax, ecx
push ebx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.00401db4
cmp eax, dword [0x4be690]
mov dword [ebp - 0x5c], eax
je 0x41c112
push eax
lea eax, [ebp - 0xcc]
push ebx
push eax
lea ecx, [ebp - 0x54]
call fcn.00402476
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00410f26
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 2
call fcn.004012b4
cmp dword [ebp - 0x38], ebx
je 0x41c112
push dword [ebp - 0x38]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x41c112
push 0x60
call fcn.0049e01f
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x41be7e
mov ecx, eax
call fcn.0041c2ef
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x41be83
mov dword [ebp - 0x14], ebx
mov edi, ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
cmp word [0x4e6c50], bx
mov ecx, 0x4e6c50
mov eax, ecx
je 0x41bea1
inc eax
inc eax
cmp word [eax], bx
jne 0x41be9a
push dword [ebp - 0x10]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00401db4
mov dword [ebp - 0x34], eax
sub eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0xac]
push dword [ebp - 0x10]
push eax
call fcn.00402476
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00410f26
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.004012b4
cmp dword [ebp - 0x24], ebx
je 0x41c0f1
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x41c0f1
mov eax, dword [ebp - 0x18]
sub eax, ebx
je 0x41c0c2
dec eax
je 0x41c0b9
dec eax
je 0x41c0b0
dec eax
je 0x41bf30
dec eax
jne 0x41c0cd
lea eax, [ebp - 0x30]
lea ecx, [edi + 0x50]
push eax
jmp 0x41c0c8
lea eax, [ebp - 0x30]
lea ecx, [edi + 0x30]
push eax
call fcn.00410f26
xor eax, eax
lea edi, [ebp - 0x8a]
mov word [ebp - 0x8c], bx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0049ec00
mov ecx, dword [ebp - 0x58]
add esp, 0xc
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0041c146
mov edi, vtable._zstring_class_ztraits_0__.0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0xbc]
push esi
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.0041120a
push esi
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00411336
push eax
lea eax, [ebp - 0x8c]
push ebx
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 7
call fcn.00401d79
lea eax, [ebp - 0xdc]
push esi
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041120a
push esi
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00411336
push eax
lea eax, [ebp - 0x8c]
push ebx
push eax
push 2
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 7
call fcn.00401d79
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x40]
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x10], ecx
call fcn.00410f26
push 0x4e6c48
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x9c], edi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x20], eax
call edi
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x20]
lea ecx, [eax + 0xc]
call fcn.00401b2b
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.004012b4
mov eax, dword [ebp - 0x60]
push eax
mov dword [ebp - 0x20], eax
call edi
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x20]
lea ecx, [eax + 0xc]
call fcn.00401b2b
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.004012b4
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004012b4
mov edi, dword [ebp - 0x14]
jmp 0x41c0cd
lea eax, [ebp - 0x30]
lea ecx, [edi + 0x20]
push eax
jmp 0x41c0c8
lea eax, [ebp - 0x30]
lea ecx, [edi + 0x10]
push eax
jmp 0x41c0c8
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00410f26
mov eax, dword [0x4be690]
mov ecx, dword [ebp - 0x34]
cmp ecx, eax
jne 0x41c0de
mov dword [ebp - 0x10], eax
jmp 0x41c0e4
add ecx, 2
mov dword [ebp - 0x10], ecx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 5
jl 0x41be8a
mov ecx, dword [ebp + 8]
push edi
call fcn.0041c3cb
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
add eax, 2
push eax
push ebx
call fcn.00401cbd
mov dword [ebp - 0x10], ebx
jmp 0x41bde1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004012b4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004012b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004012b4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4