Function at 0x470690
Capabilities:
Get file size

Disassembly:
sub esp, 0x2e8
mov eax, dword [0x66e5c0]
xor eax, esp
mov dword [esp + 0x2e4], eax
mov eax, dword [esp + 0x2f0]
push ebx
mov ebx, dword [esp + 0x2f0]
push ebp
push esi
push edi
push 0x34
mov dword [esp + 0x1c], eax
mov ebp, 0x800b0100
lea eax, [esp + 0x28]
mov dword [esp + 0x18], ecx
push 0
push eax
mov dword [esp + 0x1c], ebx
call fcn.004ce740
add esp, 0xc
mov dword [esp + 0x80], 0xf750e6c3
xorps xmm0, xmm0
mov dword [esp + 0x84], 0x11d138ee
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x88], 0xc000e585
push 0
push 0
push 3
push 0
push 1
push closesocket
push ebx
movups xmmword [esp + 0x84], xmm0
mov dword [esp + 0xa8], 0xee95c24f
movq qword [esp + 0x94], xmm0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x470a24
test edi, edi
je 0x470a24
lea eax, [esp + 0x90]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x470a1d
cmp dword [esp + 0x94], 0
jg 0x470a1d
jl 0x47079c
cmp dword [esp + 0x90], 0x2000000
ja 0x470a1d
push 0x100
mov dword [esp + 0x20], 0x100
call fcn.004c44f9
mov ebx, dword [sym.imp.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle]
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push esi
push eax
push edi
call ebx
test eax, eax
jne 0x470800
push esi
call fcn.004c4502
push dword [esp + 0x20]
call fcn.004c44f9
add esp, 8
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push esi
push eax
push edi
call ebx
test eax, eax
jne 0x470800
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004c4502
add esp, 4
jmp 0x470a24
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminAcquireContext]
test eax, eax
je 0x4707f2
mov eax, dword [0x656170]
xor ecx, ecx
movups xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________]
mov dword [esp + 0x2e8], eax
mov edx, 2
mov ax, word [0x656174]
mov word [esp + 0x2ec], ax
mov eax, dword [esp + 0x1c]
movups xmmword [esp + 0x2a8], xmm0
movups xmm0, xmmword [0x656140]
lea eax, [eax*2 + 1]
mul edx
movups xmmword [esp + 0x2b8], xmm0
movups xmm0, xmmword [0x656150]
movups xmmword [esp + 0x2c8], xmm0
seto cl
movups xmm0, xmmword [0x656160]
neg ecx
or ecx, eax
push ecx
movups xmmword [esp + 0x2dc], xmm0
call fcn.004c44f9
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
test eax, eax
je 0x4708e0
nop word [eax + eax]
movzx eax, byte [ecx + esi]
shr eax, 4
movsx eax, byte [esp + eax + 0x2a8]
mov word [edi + ecx*4], ax
movzx eax, byte [ecx + esi]
and eax, 0xf
movsx eax, byte [esp + eax + 0x2a8]
mov word [edi + ecx*4 + 2], ax
inc ecx
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jb 0x4708b0
xor ecx, ecx
push ecx
push ecx
mov word [edi + eax*4], cx
push dword [esp + 0x24]
push esi
push dword [esp + 0x30]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash]
push esi
mov ebx, eax
call fcn.004c4502
add esp, 4
test ebx, ebx
je 0x470a00
push 0x20c
lea eax, [esp + 0x9c]
push 0
push eax
call fcn.004ce740
add esp, 0xc
lea eax, [esp + 0x98]
push 0
push eax
push ebx
call dword [sym.imp.WINTRUST.dll_CryptCATCatalogInfoFromContext]
test eax, eax
je 0x4709f3
lea eax, [esp + 0x9c]
mov dword [esp + 0x58], 0x28
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], edi
mov dword [esp + 0x24], 0x34
mov dword [esp + 0x30], 2
cmp byte [eax], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 2
mov dword [esp + 0x40], 1
je 0x47099c
or dword [esp + 0x4c], 0x1200
jmp 0x4709a1
or dword [esp + 0x4c], 0x10
mov esi, dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x84]
push eax
push 0xffffffffffffffff
call esi
mov ebp, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4709da
xor ecx, ecx
mov word [eax], cx
cmp ebp, 0x800b0100
je 0x4709da
push ecx
push eax
push dword [esp + 0x4c]
call fcn.00470570
lea eax, [esp + 0x24]
mov dword [esp + 0x40], 2
push eax
lea eax, [esp + 0x84]
push eax
push 0xffffffffffffffff
call esi
push 0
push ebx
push dword [esp + 0x28]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseCatalogContext]
push edi
call fcn.004c4502
add esp, 4
push 0
push dword [esp + 0x24]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
push ebp
call fcn.00470a50
jmp 0x470a29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c3ed9
add esp, 0x2e8
ret 0xc