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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e59ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov eax, 0x519774
mov byte [ebp - 4], 1
test eax, eax
je 0x4b6994
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 0x519774
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4b63dc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4b63ce
call esi
jmp 0x4b63e8
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x4b63e8
push 7
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.004b7a80
cmp eax, ebx
jl 0x4b6994
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x4b6404
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 0x4b6420
push 0x518788
push esi
push eax
call fcn.004cf736
mov edi, dword [ebp + 8]
mov word [ebp - 0x48], 8
push edi
call fcn.004cf7d5
cmp eax, ebx
mov dword [ebp - 0x40], eax
jne 0x4b6444
cmp edi, ebx
je 0x4b6444
push 0x8007000e
call fcn.004cf728
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x4b645c
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x48]
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 - 0x44]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x40]
mov dword [ecx + 8], ebx
mov ebx, dword [ebp - 0x3c]
mov dword [ecx + 0xc], ebx
call dword [edx + 0xe8]
test eax, eax
jge 0x4b6497
push 0x518788
push esi
push eax
call fcn.004cf736
cmp word [ebp + 0xa], 0
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 1
sete bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4b64b7
push eax
call fcn.004cf728
test bl, bl
je 0x4b6664
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 0x4b6994
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b6651
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
setne cl
mov byte [ebp - 0x40], cl
lea edx, [ebp - 0x34]
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 0x4b6721
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x40]
mov byte [eax + edi], 0
call fcn.004b7a60
push ecx
mov edi, eax
mov dword [ebp - 0x30], esp
mov esi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x4b6567
push edi
call fcn.00409380
jmp 0x4b6569
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi], eax
jne 0x4b657c
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 0x4b663e
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov al, byte [ecx]
test al, al
je 0x4b65b4
cmp al, 0x26
jne 0x4b65b1
test edx, edx
jne 0x4b65b1
mov byte [ecx], 1
inc ecx
jmp 0x4b65a0
lea ecx, [ebp - 0x40]
call fcn.004b7a60
push ecx
mov edi, eax
mov dword [ebp - 0x30], esp
mov esi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
test ecx, ecx
mov byte [ebp - 4], 7
je 0x4b65e3
push edi
call fcn.00409380
jmp 0x4b65e5
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi], eax
jne 0x4b65f8
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 0x4b663e
mov al, byte [ebp - 0x40]
test al, al
je 0x4b6626
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4b6994
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b6994
mov al, byte [ebp - 0x40]
test al, al
je 0x4b6651
mov edx, dword [ebp - 0x3c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
je 0x4b6664
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, edi
jne 0x4b6677
push 0x80004003
call fcn.004cf728
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004b7770
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x4b698c
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0xa
test eax, eax
jne 0x4b66aa
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp + 8]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x4b66c6
push 0x518680
push esi
push eax
call fcn.004cf736
cmp edi, dword [ebp + 8]
jge 0x4b6776
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b66e0
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edi
push edx
call fcn.0043f920
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push eax
call fcn.00440850
lea ecx, [ebp - 0x28]
call fcn.00404a80
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b676d
lea edx, [ebp - 0x24]
push edx
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x4b6740
call fcn.00405ec0
jmp 0x4b6742
mov al, byte [ebp - 0x40]
test al, al
je 0x4b6734
mov eax, dword [ebp - 0x3c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b6994
xor eax, eax
push 0x523e14
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 0x4b6776
push 0
lea ecx, [ebp - 0x18]
call fcn.00440850
mov eax, dword [ebp - 0x14]
inc edi
jmp 0x4b6699
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b6984
lea eax, [ebp + 8]
push eax
call fcn.004b7770
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00440850
lea ecx, [ebp + 8]
call fcn.00404a80
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b6984
xor edi, edi
test eax, eax
jne 0x4b67bb
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp + 8]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x4b67d7
push 0x518680
push esi
push eax
call fcn.004cf736
cmp edi, dword [ebp + 8]
jge 0x4b6868
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b67f1
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edi
push edx
call fcn.0043f920
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push eax
call fcn.00440850
lea ecx, [ebp - 0x28]
call fcn.00404a80
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b685f
lea edx, [ebp - 0x24]
push edx
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x4b6832
call fcn.00405ec0
jmp 0x4b6834
xor eax, eax
push 0x523e0c
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 0x4b6868
push 0
lea ecx, [ebp - 0x18]
call fcn.00440850
mov eax, dword [ebp - 0x14]
inc edi
jmp 0x4b67aa
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b6984
lea eax, [ebp + 8]
push eax
call fcn.004b7770
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00440850
lea ecx, [ebp + 8]
call fcn.00404a80
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b6984
xor edi, edi
test eax, eax
jne 0x4b68ad
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp + 8]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x4b68c9
push 0x518680
push esi
push eax
call fcn.004cf736
cmp edi, dword [ebp + 8]
jge 0x4b695a
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b68e3
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edi
push edx
call fcn.0043f920
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push eax
call fcn.00440850
lea ecx, [ebp - 0x28]
call fcn.00404a80
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b6951
lea edx, [ebp - 0x24]
push edx
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x4b6924
call fcn.00405ec0
jmp 0x4b6926
xor eax, eax
push 0x523e08
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 0x4b695a
push 0
lea ecx, [ebp - 0x18]
call fcn.00440850
mov eax, dword [ebp - 0x14]
inc edi
jmp 0x4b689c
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b6984
lea eax, [ebp + 8]
push eax
call fcn.004b7770
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00440850
lea ecx, [ebp + 8]
call fcn.00404a80
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b69b4
lea ecx, [ebp - 0x18]
call fcn.00404a80
lea ecx, [ebp - 0x14]
call fcn.00404a80
lea ecx, [ebp - 0x1c]
call fcn.00404a80
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edi, edi
mov dword [ebp - 0x28], edi
test eax, eax
jne 0x4b69ca
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x4b69e6
push 0x518680
push esi
push eax
call fcn.004cf736
cmp edi, dword [ebp - 0x2c]
jge 0x4b6b51
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b6a00
push 0x80004003
call fcn.004cf728
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
push edi
push edx
call fcn.0043f920
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push eax
call fcn.00440850
lea ecx, [ebp - 0x30]
call fcn.00404a80
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b6b45
lea edx, [ebp - 0x34]
push edx
call fcn.0040f290
mov ecx, dword [eax]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x4b6a45
call fcn.00405ec0
jmp 0x4b6a47
xor eax, eax
push 0x523e1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
sete bl
call fcn.00405de0
test bl, bl
je 0x4b6b45
lea ecx, [ebp - 0x18]
call fcn.00447640
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0040f330
push ecx
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x523df4
call fcn.00440bf0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x10
call fcn.00447640
lea edx, [ebp + 8]
mov ecx, eax
push edx
mov byte [ebp - 4], 0xf
call fcn.0040f740
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b6b31
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x12
call fcn.00447640
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.004b7710
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x13
call fcn.004b78e0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 0x15
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4b6af1
push eax
call fcn.004cf728
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4b6aff
call fcn.00405ec0
jmp 0x4b6b01
xor eax, eax
mov ecx, dword [ebp - 0x38]
push 0x26
push 1
push eax
call fcn.004b6b80
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004b62f0
lea ecx, [ebp - 0x20]
call fcn.00405de0
jmp 0x4b6b2a
mov dword [ebp - 4], 0x11
lea ecx, [ebp + 8]
call fcn.00404a80
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00404a80
mov eax, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x28], edi
jmp 0x4b69b9
lea ecx, [ebp - 0x18]
call fcn.00404a80
lea ecx, [ebp - 0x14]
call fcn.00404a80
lea ecx, [ebp - 0x1c]
call fcn.00404a80
mov eax, 1
jmp 0x4b699e