Function at 0x10130c40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1025ad80]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x270], eax
call fcn.100ddc40
mov byte [ebx + 0x274], al
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 8]
push 0x10202940
mov dword [ebp - 8], eax
call fcn.10023e80
test al, al
jne 0x10130c96
push 0
push 0x10202940
lea ecx, [ebp - 8]
call fcn.10003740
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push 0x27c3
push eax
call fcn.100053d0
add esp, 0xc
mov ecx, ebx
push eax
call fcn.10002790
mov edx, dword [ebp - 0xc]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10130cd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10130cea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 8]
push 0x10202940
mov dword [ebp - 8], eax
call fcn.10023e80
test al, al
jne 0x10130d1c
push 0
push 0x10202940
lea ecx, [ebp - 8]
call fcn.10003740
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push 0x9c8f
push eax
call fcn.100053d0
add esp, 0xc
lea ecx, [ebx + 4]
push eax
call fcn.10002790
mov edx, dword [ebp - 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10130d54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10130d6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 8]
push 0x27c4
mov dword [ebp - 8], eax
call fcn.10023e80
test al, al
jne 0x10130dbd
mov ecx, 0x27c4
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10130da0
sub ecx, edx
sar ecx, 1
push ecx
push 0x27c4
lea ecx, [ebp - 8]
call fcn.10003740
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc]
call fcn.10002790
mov edx, dword [ebp - 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10130de3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 8]
push 0x10202940
mov dword [ebp - 8], eax
call fcn.10023e80
test al, al
jne 0x10130e15
push 0
push 0x10202940
lea ecx, [ebp - 8]
call fcn.10003740
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push 0x9c90
push eax
call fcn.100053d0
add esp, 0xc
lea ecx, [ebx + 8]
push eax
call fcn.10002790
mov edx, dword [ebp - 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10130e4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10130e67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp + 0xc]
call fcn.1000a000
push str..ics
push dword [eax]
call sub.msvcrt.dll__wcsicmp
mov edx, dword [ebp - 0xc]
add esp, 8
test eax, eax
mov eax, esi
sete byte [ebp - 1]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10130ea4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 1], 0
je 0x10130ef1
push str.Hosts.ics
push str.Hosts
mov ecx, ebx
call fcn.10003450
push str.Hosts.ics
push str.Hosts
lea ecx, [ebx + 4]
call fcn.10003450
push str.Hosts.ics
push str.Hosts
lea ecx, [ebx + 8]
call fcn.10003450
push str.Hosts.ics
push str.Hosts
lea ecx, [ebx + 0xc]
call fcn.10003450
mov dword [ebx + 0x25c], 0
lea edi, [ebx + 0x24c]
mov dword [ebx + 0x248], 1
mov ecx, edi
mov dword [ebx + 0x254], 0
mov esi, dword [edi]
push dword [esi + 4]
call fcn.100f9870
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
or edi, 0xffffffff
mov eax, dword [ebx + 0x23c]
mov esi, dword [ebx + 0x238]
cmp esi, eax
je 0x10130f79
mov ebx, eax
jmp 0x10130f50
mov edx, dword [esi]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10130f69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, ebx
jne 0x10130f50
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx + 0x238]
mov dword [ebx + 0x23c], esi
mov esi, dword [ebp + 8]
mov dword [ebx + 0x258], 0
mov dword [ebx + 0x26c], 0
test esi, esi
je 0x1013114e
push dword [ebp + 0xc]
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x1013114e
lea eax, [ebp + 0xc]
mov dword [ebx + 0x26c], esi
push eax
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100048e0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10130ff6
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
call fcn.10003680
add esp, 4
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
test eax, eax
je 0x1013101a
call eax
jmp 0x10131020
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
test esi, esi
je 0x1013102e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0xffffffff
je 0x10131146
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1013104e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x11
call fcn.10003680
add esp, 4
push 0
push dword [ebp + 8]
test eax, eax
je 0x10131065
call eax
jmp 0x1013106b
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
test esi, esi
je 0x10131079
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x254], ecx
cmp ecx, 0xffffffff
je 0x1013113e
mov eax, ecx
and eax, 0xfffffc00
cmp eax, 0x100000
jbe 0x10131130
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.10002a60
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov ecx, dword [ebx + 0x26c]
call fcn.100f89d0
push ecx
mov dword [ebp - 0x10], eax
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202a60
mov dword [esi], eax
call fcn.1012c930
test al, al
jne 0x101310f8
push 0
push 0x10202a60
mov ecx, esi
call fcn.10131360
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.10002a60
add eax, 0x10
mov dword [esi], eax
mov esi, esp
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.10002a60
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
push 1
push dword [ebp - 0x10]
call fcn.1012cf00
jmp 0x1013113e
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.1012e4c0
push dword [ebp + 8]
call fcn.1006c110
lea ecx, [ebp - 0x1c]
call fcn.1002a3c0
mov edx, dword [ebp + 0xc]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10131168
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10131180
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc