Function at 0x45d810
Capabilities:
Get file size

Disassembly:
sub esp, 0x2f0
mov eax, dword [0x605580]
xor eax, esp
mov dword [esp + 0x2ec], eax
mov eax, dword [esp + 0x2f8]
push ebx
mov ebx, dword [esp + 0x2f8]
push ebp
push esi
push edi
push 0x34
mov dword [esp + 0x20], eax
mov ebp, 0x800b0100
lea eax, [esp + 0x78]
mov dword [esp + 0x1c], ecx
push 0
push eax
mov dword [esp + 0x20], ebx
call fcn.00492cb0
add esp, 0xc
mov dword [esp + 0xd0], 0xf750e6c3
xorps xmm0, xmm0
mov dword [esp + 0xd4], 0x11d138ee
movups xmmword [esp + 0xa8], xmm0
mov dword [esp + 0xd8], 0xc000e585
push 0
push 0
push 3
push 0
push 1
push closesocket
push ebx
movups xmmword [esp + 0xd4], xmm0
mov dword [esp + 0xf8], 0xee95c24f
movq qword [esp + 0xe4], xmm0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x8c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45dbbb
test edi, edi
je 0x45dbbb
lea eax, [esp + 0xe0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45dbb4
cmp dword [esp + 0xe4], 0
jg 0x45dbb4
jl 0x45d922
cmp dword [esp + 0xe0], 0x2000000
ja 0x45dbb4
push 0x100
mov dword [esp + 0x70], 0x100
call fcn.00488c0b
mov ebx, dword [sym.imp.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle]
add esp, 4
mov esi, eax
lea eax, [esp + 0x6c]
push 0
push esi
push eax
push edi
call ebx
test eax, eax
jne 0x45d986
push esi
call fcn.00488604
push dword [esp + 0x70]
call fcn.00488c0b
add esp, 8
mov esi, eax
lea eax, [esp + 0x6c]
push 0
push esi
push eax
push edi
call ebx
test eax, eax
jne 0x45d986
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00488604
add esp, 4
jmp 0x45dbbb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminAcquireContext]
test eax, eax
je 0x45d978
mov eax, dword [0x5f8510]
xor ecx, ecx
movups xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________]
mov dword [esp + 0x60], eax
mov edx, 2
mov ax, word [0x5f8514]
mov word [esp + 0x64], ax
mov eax, dword [esp + 0x6c]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [0x5f84e0]
lea eax, [eax*2 + 1]
mul edx
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x5f84f0]
movups xmmword [esp + 0x40], xmm0
seto cl
movups xmm0, xmmword [0x5f8500]
neg ecx
or ecx, eax
push ecx
movups xmmword [esp + 0x54], xmm0
call fcn.00488c0b
mov edx, dword [esp + 0x70]
add esp, 4
xor ecx, ecx
mov edi, eax
test edx, edx
je 0x45da4a
nop word [eax + eax]
movzx eax, byte [esi + ecx]
shr eax, 4
movsx eax, byte [esp + eax + 0x20]
mov word [edi + ecx*4], ax
movzx eax, byte [esi + ecx]
and eax, 0xf
movsx eax, byte [esp + eax + 0x20]
mov word [edi + ecx*4 + 2], ax
inc ecx
mov edx, dword [esp + 0x6c]
cmp ecx, edx
jb 0x45da20
xor eax, eax
push eax
push eax
mov word [edi + edx*4], ax
push dword [esp + 0x74]
push esi
push dword [esp + 0x80]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash]
push esi
mov ebx, eax
call fcn.00488604
add esp, 4
test ebx, ebx
je 0x45db97
push 0x20c
lea eax, [esp + 0xec]
push 0
push eax
call fcn.00492cb0
add esp, 0xc
lea eax, [esp + 0xe8]
push 0
push eax
push ebx
call dword [sym.imp.WINTRUST.dll_CryptCATCatalogInfoFromContext]
test eax, eax
je 0x45db8a
lea eax, [esp + 0xec]
mov dword [esp + 0xa8], 0x28
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xb4], edi
mov dword [esp + 0x74], 0x34
mov dword [esp + 0x80], 2
cmp byte [eax], 0
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 2
mov dword [esp + 0x90], 1
je 0x45db2a
or dword [esp + 0x9c], 0x1200
jmp 0x45db32
or dword [esp + 0x9c], 0x10
mov esi, dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xd4]
push eax
push 0xffffffffffffffff
call esi
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45db6e
xor ecx, ecx
mov word [eax], cx
cmp ebp, 0x800b0100
je 0x45db6e
push ecx
push eax
push dword [esp + 0x9c]
call fcn.0045d6f0
lea eax, [esp + 0x74]
mov dword [esp + 0x90], 2
push eax
lea eax, [esp + 0xd4]
push eax
push 0xffffffffffffffff
call esi
push 0
push ebx
push dword [esp + 0x78]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseCatalogContext]
push edi
call fcn.00488604
add esp, 4
push 0
push dword [esp + 0x74]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
push ebp
call fcn.0045dbe0
jmp 0x45dbc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004883ab
add esp, 0x2f0
ret 0xc