Function at 0x4397f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d42b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
push str.CheckRunEnvironment::GetTotalInstallDriverFileSizeForFileList
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], edi
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x4398cf
test byte [esi + 0x1c], 1
je 0x43988e
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5caaf4
mov ecx, 0x2f
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
cmp esi, 0x608f30
je 0x4398cf
test byte [esi + 0x1c], 1
je 0x4398cf
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [esi + 0x14]
mov ecx, 0x30
push dword [esi + 0x10]
call fcn.00405920
mov esi, dword [0x608f30]
add esp, 0x10
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x254], 0
push 0
push eax
call fcn.00571c00
mov eax, dword [edi + 8]
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x260], eax
test eax, eax
jle 0x439b83
test ebx, ebx
js 0x439bf6
cmp ebx, dword [edi + 8]
jge 0x439bf6
mov eax, dword [edi + 4]
push dword [eax + ebx*4]
lea eax, [ebp - 0x218]
push dword [ebp - 0x258]
push 0x5c70f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x43997b
test byte [ecx + 0x1c], 4
je 0x43997b
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5caaf4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x31
call fcn.00405920
add esp, 0x10
push 0
push 0x20
push 3
push 0
push 0
push closesocket
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x439afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x439a01
test byte [esi + 0x1c], 2
je 0x439a01
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x250]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5caaf4
push esi
mov ecx, 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
mov esi, dword [0x608f30]
add esp, 0x10
cmp edi, 2
jne 0x439aa8
mov eax, dword [ebp - 0x25c]
cmp ebx, dword [eax + 8]
jge 0x439bf6
mov eax, dword [eax + 4]
push dword [eax + ebx*4]
lea eax, [ebp - 0x218]
push dword [ebp - 0x258]
push str._sCOLOR_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x439a7f
test byte [ecx + 0x1c], 4
je 0x439a7f
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5caaf4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [edi + 0x31]
call fcn.00405920
add esp, 0x10
push 0
push 0x20
push 3
push 0
push 0
push closesocket
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x439afd
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x439b6f
test byte [esi + 0x1c], 2
je 0x439b6f
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x250]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5caaf4
push esi
mov ecx, 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
jmp 0x439b69
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x439b5c
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x439b62
test byte [eax + 0x1c], 2
je 0x439b62
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x250]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5caaf4
push esi
mov ecx, 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
jmp 0x439b62
add dword [ebp - 0x254], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x608f30]
inc ebx
cmp ebx, dword [ebp - 0x260]
jge 0x439b83
mov edi, dword [ebp - 0x25c]
jmp 0x439902
mov byte [ebp - 0x24c], 1
mov edi, dword [ebp - 0x254]
cmp esi, 0x608f30
je 0x439bcb
test byte [esi + 0x1c], 1
je 0x439bcb
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [esi + 0x14]
mov ecx, 0x36
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x250]
call fcn.0040a570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
call fcn.005511b9
int3