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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x54], 0
mov eax, dword [ecx]
push esi
push edi
mov dword [ebp - 0x50], 0
call dword [eax]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
call fcn.100dda60
add esp, 0xc
cmp dword [ebp - 0x54], 0
je 0x100d4968
call fcn.10003180
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100d479b
push esi
call edi
push 8
call fcn.10003680
add esp, 4
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
test eax, eax
je 0x100d47c2
call eax
mov ebx, eax
mov dword [ebp - 0x40], ebx
jmp 0x100d47cd
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x40], eax
test esi, esi
je 0x100d47d8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x100d4825
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100d47ef
push esi
call edi
push 0x11
call fcn.10003680
add esp, 4
push 0
push ebx
test eax, eax
je 0x100d4804
call eax
jmp 0x100d480a
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test esi, esi
je 0x100d4817
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0x100000
jbe 0x100d483a
push ebx
call fcn.1006c110
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x100d4962
mov dword [ebp - 0x44], 0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100d486e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 9
call fcn.10003680
add esp, 4
push 0
test eax, eax
je 0x100d488c
lea ecx, [ebp - 0x44]
push ecx
push edi
mov edi, dword [ebp - 0x48]
push edi
push ebx
call eax
jmp 0x100d489c
lea eax, [ebp - 0x44]
push eax
push edi
mov edi, dword [ebp - 0x48]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x100d48aa
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x4c], 0
je 0x100d4957
mov eax, dword [ebp - 0x44]
mov ebx, edi
mov ecx, 8
mov esi, str.baidu_online_network_technology
mov byte [eax + edi], 0
mov eax, dword [str.nullsoft_install_system]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
add edx, edi
mov eax, dword [0x102108a0]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x102108a4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x102108a8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x102108ac]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [0x102108b0]
xor edi, edi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 8], eax
cmp dword [ebp - 0x48], edx
je 0x100d4954
lea ecx, [ecx]
push 0x17
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.msvcrt.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x100d492a
lea esi, [eax + 1]
test edi, edi
jne 0x100d494c
push 0x1f
lea eax, [ebp - 0x3c]
push eax
push ebx
call sub.msvcrt.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x100d4944
lea edi, [eax + 1]
test esi, esi
jne 0x100d4951
inc ebx
cmp ebx, dword [ebp - 0x4c]
jne 0x100d4910
jmp 0x100d4954
mov dword [ebp - 0x50], esi
jmp 0x100d4954
mov dword [ebp - 0x50], edi
mov ebx, dword [ebp - 0x40]
push dword [ebp - 0x48]
call sub.msvcrt.dll_free
add esp, 4
push ebx
call fcn.1006c110
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x50]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4