Function at 0x4276d1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 8
call fcn.0049c8e3
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.0049c8e3
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esp
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll__lopen]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x42776e
push 0x19
push 0x402c552
push 6
call fcn.0049c8ef
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4277a1
push 0x3d
push 0x402c552
push 6
call fcn.0049c8ef
add esp, 0xc
mov dword [ebp - 0x20], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll__lclose]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4277cd
push 0x5e
push 0x402c552
push 6
call fcn.0049c8ef
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x4277d7
cmp dword [ebp - 8], 0
jne 0x427984
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [sym.imp.ole32.dll_CoInitialize]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x42780b
push 0xae
push 0x402c552
push 6
call fcn.0049c8ef
add esp, 0xc
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.scripting.FileSystemObject
push 0x10030
push 0
push dword [ebp - 0x10]
push 3
mov ebx, 0x91c
call fcn.004a0d80
add esp, 0x28
push 0xa0000004
push 0
push dword [ebp + 8]
push reloc.WS2_32.dll_connect
push 0
push str.GetFile
push 0x10030
push 0
push dword [ebp - 0x10]
push 3
mov ebx, 0x964
call fcn.004a1030
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.004a0f60
add esp, 0x10
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Size
push 0x10030
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x944
call fcn.004a0f80
add esp, 0x28
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0x10031
push 0
push dword [ebp - 0x20]
push 2
mov ebx, 0x994
call fcn.004a1330
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov ebx, dword [ebp - 0x20]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x984
call fcn.004a1310
add esp, 0x10
call fcn.0049c8e9
add esp, 4
fld qword [ebp - 0x28]
call fcn.004014a6
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0x10030
push 0
push dword [ebp - 0x14]
push 1
mov ebx, 0x924
call fcn.004a0f60
add esp, 0x10
push 0x10030
push 0
push dword [ebp - 0x14]
push 1
mov ebx, 0x924
call fcn.004a0f60
add esp, 0x10
mov dword [ebp - 0x20], esp
xor eax, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x427984
push 0x1d0
push 0x402c552
push 6
call fcn.0049c8ef
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x427b22
push 0x80000301
push 0
push 0x14
push 1
mov ebx, 0x184
call fcn.0049dbf0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4279c3
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push 0x14
push dword [ebp - 0x18]
push dword [ebp - 8]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_StrFormatByteSize64A]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4279fe
push 0x235
push 0x402c552
push 6
call fcn.0049c8ef
add esp, 0xc
push 0x4af6ee
push dword [ebp - 0x18]
call fcn.0040284b
add esp, 8
cmp eax, 0
jne 0x427a31
mov eax, 0x4ae963
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x427a2d
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4af6f5
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x427a62
mov eax, 0x4ae205
push eax
push 4
mov ebx, 0x148
call fcn.0049d650
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x427af1
push reloc.WS2_32.dll_bind
push 0
push 1
mov ebx, 6
call fcn.004028e8
push reloc.WS2_32.dll_connect
push 0
push 0x4af6fa
push reloc.WS2_32.dll_connect
push 0
push 0x4af6f5
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x427ac3
mov eax, 0x4ae205
push eax
push 6
mov ebx, 0x180
call fcn.0049e790
add esp, 0x4c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x427aed
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x427b0d
push eax
mov ebx, eax
call fcn.00401388
inc eax
push eax
call fcn.0049c8e3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x427b1e
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0x80000401
push dword [ebp - 8]
push dword [ebp - 0xc]
push 1
mov ebx, 0x168
call fcn.0049dde0
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0xc], 0
je 0x427b6d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x427b68
push eax
mov ebx, eax
call fcn.00401388
inc eax
push eax
call fcn.0049c8e3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x427b89
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x427b89
push eax
mov ebx, eax
call fcn.00401388
inc eax
push eax
call fcn.0049c8e3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x427b9c
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x24]
jmp 0x427ba4
push eax
mov ebx, dword [ebp - 0x10]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.004a0f60
add esp, 0x10
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x924
call fcn.004a0f60
add esp, 0x10
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x427bfb
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x427c0b
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc