Function at 0x12e40c80
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x12e40f8f
mov eax, dword [0x13199068]
test eax, eax
je 0x12e40cb0
push str.CHttp::Log_1
push str.http
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
lea eax, [edi + 0xc]
push eax
call fcn.12f03130
mov ecx, eax
call fcn.12f02730
test eax, eax
jne 0x12e40f8f
mov eax, dword [0x13199068]
test eax, eax
je 0x12e40ce5
push str.CHttp::Log_2
push str.http
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov eax, dword [edi + 0x1a0]
test eax, eax
je 0x12e40f8f
jmp 0x12e40cfd
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
test esi, esi
mov dword [esp + 0x14], ecx
je 0x12e40f83
cmp word [esi + 0x2c], 0x5c
je 0x12e40e76
push 0x35c
call fcn.12f5c05b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x12e40f83
mov eax, dword [0x13199068]
test eax, eax
je 0x12e40d4d
push str.CHttp::Log_3
push str.http
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x12e40d73
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x12e40d73
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
or edx, eax
jne 0x12e40d73
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or eax, ecx
je 0x12e40f8f
mov dword [ebx + 0x10], 1
mov dword [ebx + 4], 0
mov ecx, dword [esi + 4]
mov dword [ebx + 8], ecx
mov edx, dword [edi]
mov dword [ebx], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x1c], eax
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x18], ecx
mov edx, dword [esi + 0x230]
mov dword [ebx + 0x20], edx
mov eax, dword [esi + 0x234]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [edi + 4]
test eax, eax
mov dword [ebx + 0x14], ecx
jne 0x12e40dd2
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x12e40dd2
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x18], eax
lea ebp, [ebx + 0x154]
mov ecx, 0x82
xor eax, eax
mov edi, ebp
add esi, 0x28
rep stosd dword es:[edi], eax
push esi
call fcn.12f5c51d
add esp, 4
mov ecx, esi
test eax, eax
jbe 0x12e40e06
mov edx, ebp
sub edx, esi
mov si, word [ecx]
mov word [edx + ecx], si
add ecx, 2
dec eax
jne 0x12e40df9
lea edx, [ebx + 0x28]
mov ecx, 0x4b
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
or ecx, 0xffffffff
push ebx
lea esi, [eax + 0xc]
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.12f03130
mov ecx, eax
call fcn.12f027f0
mov eax, dword [0x13199068]
test eax, eax
je 0x12e40f83
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx]
push eax
push ecx
push ebp
push edx
push str.CHttp::Log_4__Add_To_CUDNetFileList__s:__08X__File:__s__High:__d__Low:__d_
push str.http
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x1c
jmp 0x12e40f83
mov eax, dword [0x13199068]
test eax, eax
je 0x12e40e93
push str.CHttp::Log_4
push str.http
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
push 0
push 0x80
push 3
push 0
lea ebp, [esi + 0x28]
push 3
push SysReAllocStringLen
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x12e40f2f
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x12e40ed3
mov dword [esp + 0x10], ebx
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x20]
xor edx, edx
push eax
push ebx
mov dword [esp + 0x28], edx
push ebx
push edi
mov dword [esi + 0x10], ecx
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
jne 0x12e40f28
xor ecx, ecx
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push edx
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x230], ecx
mov dword [esi + 0x234], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
add eax, 0xc
push eax
call fcn.12f03830
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x12e40f83
push ebx
call fcn.12f03ad0
push ebx
mov edi, eax
call fcn.12f5c050
add esp, 8
test edi, edi
je 0x12e40f83
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x230]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
mov edx, dword [ecx + 4]
push edi
push ebp
push edx
push 1
call fcn.12e74930
push edi
call fcn.12f5c050
add esp, 0x20
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x12e40cf5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret