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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5921
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov eax, str.Microsoft.XMLDOM
mov byte [ebp - 4], 1
test eax, eax
je 0x4b60c6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004cf470
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push str.Microsoft.XMLDOM
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4b58fc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4b58ee
call esi
jmp 0x4b5908
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x4b5908
push 7
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.004b7a80
cmp eax, ebx
jl 0x4b60c6
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x4b5924
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ebx
push eax
mov esi, eax
call dword [ecx + 0xfc]
cmp eax, ebx
jge 0x4b5940
push 0x518788
push esi
push eax
call fcn.004cf736
mov edi, dword [ebp + 8]
mov word [ebp - 0x54], 8
push edi
call fcn.004cf7d5
cmp eax, ebx
mov dword [ebp - 0x4c], eax
jne 0x4b5964
cmp edi, ebx
je 0x4b5964
push 0x8007000e
call fcn.004cf728
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x4b597c
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x54]
lea ecx, [ebp + 0xa]
push ecx
mov edx, dword [eax]
sub esp, 0x10
mov esi, eax
mov ecx, esp
push eax
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x50]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ecx + 8], ebx
mov ebx, dword [ebp - 0x48]
mov dword [ecx + 0xc], ebx
call dword [edx + 0xe8]
test eax, eax
jge 0x4b59b7
push 0x518788
push esi
push eax
call fcn.004cf736
cmp word [ebp + 0xa], 0
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 1
sete bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4b59d7
push eax
call fcn.004cf728
test bl, bl
je 0x4b5b7b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
mov byte [ebp - 4], 3
je 0x4b60c6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
setne cl
mov byte [ebp - 0x4c], cl
lea edx, [ebp - 0x3c]
push 0
push edx
push edi
mov bl, 4
push eax
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b5c38
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x4c]
mov byte [eax + edi], 0
call fcn.004b7a60
push ecx
mov edi, eax
mov dword [ebp - 0x38], esp
mov esi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x34], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x4b5a7e
push edi
call fcn.00409380
jmp 0x4b5a80
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi], eax
jne 0x4b5a93
push 0x8007000e
call fcn.004cf728
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00447640
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004219b0
test ax, ax
jne 0x4b5b55
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov al, byte [ecx]
test al, al
je 0x4b5acb
cmp al, 0x26
jne 0x4b5ac8
test edx, edx
jne 0x4b5ac8
mov byte [ecx], 1
inc ecx
jmp 0x4b5ab7
lea ecx, [ebp - 0x4c]
call fcn.004b7a60
push ecx
mov edi, eax
mov dword [ebp - 0x38], esp
mov esi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x34], ecx
test ecx, ecx
mov byte [ebp - 4], 7
je 0x4b5afa
push edi
call fcn.00409380
jmp 0x4b5afc
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi], eax
jne 0x4b5b0f
push 0x8007000e
call fcn.004cf728
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00447640
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004219b0
test ax, ax
jne 0x4b5b55
mov al, byte [ebp - 0x4c]
test al, al
je 0x4b5b3d
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4b60c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b60c6
mov al, byte [ebp - 0x4c]
test al, al
je 0x4b5b68
mov edx, dword [ebp - 0x48]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
je 0x4b5b7b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, edi
jne 0x4b5b8e
push 0x80004003
call fcn.004cf728
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004b7770
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x4b60be
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0xa
test eax, eax
jne 0x4b5bc1
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
lea ecx, [ebp + 8]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x4b5bdd
push 0x518680
push esi
push eax
call fcn.004cf736
cmp edi, dword [ebp + 8]
jge 0x4b5c8d
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4b5bf7
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push edi
push edx
call fcn.0043f920
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
call fcn.00440850
lea ecx, [ebp - 0x28]
call fcn.00404a80
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4b5c84
lea edx, [ebp - 0x24]
push edx
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x4b5c57
call fcn.00405ec0
jmp 0x4b5c59
mov al, byte [ebp - 0x4c]
test al, al
je 0x4b5c4b
mov eax, dword [ebp - 0x48]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b60c6
xor eax, eax
push str.smil
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
sete bl
call fcn.00405de0
test bl, bl
jne 0x4b5c8d
push 0
lea ecx, [ebp - 0x14]
call fcn.00440850
mov eax, dword [ebp - 0x18]
inc edi
jmp 0x4b5bb0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4b60b6
lea eax, [ebp + 8]
push eax
call fcn.004b7770
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00440850
lea ecx, [ebp + 8]
call fcn.00404a80
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b60b6
xor edi, edi
test eax, eax
jne 0x4b5cd2
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
lea ecx, [ebp + 8]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x4b5cee
push 0x518680
push esi
push eax
call fcn.004cf736
cmp edi, dword [ebp + 8]
jge 0x4b5d7f
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4b5d08
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push edi
push edx
call fcn.0043f920
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
call fcn.00440850
lea ecx, [ebp - 0x28]
call fcn.00404a80
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4b5d76
lea edx, [ebp - 0x24]
push edx
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x4b5d49
call fcn.00405ec0
jmp 0x4b5d4b
xor eax, eax
push str.body
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
sete bl
call fcn.00405de0
test bl, bl
jne 0x4b5d7f
push 0
lea ecx, [ebp - 0x14]
call fcn.00440850
mov eax, dword [ebp - 0x18]
inc edi
jmp 0x4b5cc1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4b60b6
lea eax, [ebp + 8]
push eax
call fcn.004b7770
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00440850
lea ecx, [ebp + 8]
call fcn.00404a80
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b60b6
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp + 8], ebx
test eax, eax
jne 0x4b5dca
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x4b5de6
push 0x518680
push esi
push eax
call fcn.004cf736
cmp ebx, dword [ebp - 0x2c]
jge 0x4b608c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4b5e00
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x30]
push ebx
push edx
call fcn.0043f920
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
call fcn.00440850
lea ecx, [ebp - 0x30]
call fcn.00404a80
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4b607a
lea edx, [ebp - 0x34]
push edx
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x4b5e45
call fcn.00405ec0
jmp 0x4b5e47
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x523e08
push eax
call esi
test eax, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
sete bl
call fcn.00405de0
test bl, bl
jne 0x4b608c
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b5e7f
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x4b5e9c
call fcn.00405ec0
jmp 0x4b5e9e
xor eax, eax
push str.video
push eax
call esi
test eax, eax
je 0x4b5ef3
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b5ebb
push 0x80004003
call fcn.004cf728
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x4b5ed8
call fcn.00405ec0
jmp 0x4b5eda
xor eax, eax
push str.audio
push eax
call esi
test eax, eax
lea ecx, [ebp - 0x38]
sete bl
call fcn.00405de0
test bl, bl
je 0x4b5ef5
mov bl, 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.00405de0
test bl, bl
je 0x4b606d
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b5f1a
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edx
call fcn.0040f330
push ecx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x44], esp
mov esi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
test ecx, ecx
mov byte [ebp - 4], 0x11
je 0x4b5f53
push 0x523df4
call fcn.00409380
jmp 0x4b5f55
xor eax, eax
test eax, eax
mov byte [ebp - 4], 0x10
mov dword [esi], eax
jne 0x4b5f69
push 0x8007000e
call fcn.004cf728
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
call fcn.00447640
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x10
push ecx
mov ecx, eax
call fcn.0040f740
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b6059
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 0x14
push edx
call fcn.004b7710
mov esi, eax
mov dword [ebp - 0x20], 0
cmp word [esi], 8
mov byte [ebp - 4], 0x15
jne 0x4b5fbd
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x20]
push eax
call fcn.004b77c0
jmp 0x4b5ffa
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 8
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x16
call fcn.004b78a0
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x20]
push edx
call fcn.004b77c0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x15
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4b5ffa
push eax
call fcn.004cf728
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x18
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4b6012
push eax
call fcn.004cf728
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4b6020
call fcn.00405ec0
jmp 0x4b6022
xor eax, eax
mov esi, eax
xor edx, edx
mov cl, byte [eax]
test cl, cl
je 0x4b603b
cmp cl, 1
jne 0x4b6038
test edx, edx
jne 0x4b6038
mov byte [eax], 0x26
inc eax
jmp 0x4b6026
mov eax, dword [edi + 8]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [ebp - 0x20]
call fcn.00405de0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0x13
lea ecx, [ebp - 0x24]
call fcn.00404a80
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00404a80
push 0
lea ecx, [ebp - 0x14]
call fcn.00440850
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
inc ebx
mov dword [ebp + 8], ebx
jmp 0x4b5db9
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4b60b6
lea edx, [ebp + 8]
push edx
call fcn.004b7770
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push eax
call fcn.00440850
lea ecx, [ebp + 8]
call fcn.00404a80
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4b60e6
lea ecx, [ebp - 0x14]
call fcn.00404a80
lea ecx, [ebp - 0x18]
call fcn.00404a80
lea ecx, [ebp - 0x1c]
call fcn.00404a80
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x80]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edi, edi
mov dword [ebp + 8], edi
test eax, eax
jne 0x4b60fc
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
mov esi, eax
call dword [ecx + 0x20]
test eax, eax
jge 0x4b6118
push 0x518680
push esi
push eax
call fcn.004cf736
cmp edi, dword [ebp - 0x3c]
jge 0x4b62c7
lea ecx, [ebp - 0x18]
call fcn.00447640
lea ecx, [ebp - 0x38]
push edi
push ecx
mov ecx, eax
call fcn.0043f920
mov edx, dword [eax]
lea ecx, [ebp - 0x14]
push edx
call fcn.00440850
lea ecx, [ebp - 0x38]
call fcn.00404a80
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b62bb
lea ecx, [ebp - 0x14]
call fcn.00447640
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0x1a
test ecx, ecx
je 0x4b6177
call fcn.00405ec0
jmp 0x4b6179
xor eax, eax
push str.video
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4b61cc
lea ecx, [ebp - 0x14]
call fcn.00447640
lea edx, [ebp - 0x34]
mov ecx, eax
push edx
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0x1b
test ecx, ecx
je 0x4b61ad
call fcn.00405ec0
jmp 0x4b61af
xor eax, eax
push str.audio
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x34]
sete bl
call fcn.00405de0
test bl, bl
je 0x4b61ce
mov bl, 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.00405de0
test bl, bl
je 0x4b62bb
lea ecx, [ebp - 0x14]
call fcn.00447640
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0040f330
push ecx
mov byte [ebp - 4], 0x1c
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x523df4
call fcn.00440bf0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x1d
call fcn.00447640
lea edx, [ebp - 0x20]
mov ecx, eax
push edx
mov byte [ebp - 4], 0x1c
call fcn.0040f740
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4b62a7
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x1f
call fcn.00447640
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.004b7710
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x20
call fcn.004b78e0
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 0x22
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4b6267
push eax
call fcn.004cf728
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4b6275
call fcn.00405ec0
jmp 0x4b6277
xor eax, eax
mov ecx, dword [ebp - 0x40]
push 0x26
push 1
push eax
call fcn.004b6b80
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004b62f0
lea ecx, [ebp - 0x28]
call fcn.00405de0
jmp 0x4b62a0
mov dword [ebp - 4], 0x1e
lea ecx, [ebp - 0x20]
call fcn.00404a80
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00404a80
mov eax, dword [ebp - 0x18]
inc edi
mov dword [ebp + 8], edi
jmp 0x4b60eb
lea ecx, [ebp - 0x14]
call fcn.00404a80
lea ecx, [ebp - 0x18]
call fcn.00404a80
lea ecx, [ebp - 0x1c]
call fcn.00404a80
mov eax, 1
jmp 0x4b60d0