Function at 0x439c00
Capabilities:
Enumerate files on windows
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d481
mov eax, dword fs:[0]
push eax
sub esp, 0x6ac
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push ecx
push str.CheckRunEnvironment::GetTotalInstallDriverFileSizeForHWIDList
lea ecx, [ebp - 0x458]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x439ccd
test byte [ecx + 0x1c], 1
je 0x439c92
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5caaf4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x37
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x439ccd
test byte [ecx + 0x1c], 1
je 0x439ccd
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x38
call fcn.00405920
add esp, 0x10
push 0x410
xor ebx, ebx
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00571c00
push 0x250
lea eax, [ebp - 0x6a8]
push ebx
push eax
call fcn.00571c00
mov eax, dword [esi + 8]
add esp, 0x18
mov dword [ebp - 0x6b0], eax
lea eax, [ebp - 0x420]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x6b0], ebx
jle 0x43a059
cmp dword [esi + 8], ebx
jle 0x43a0cc
mov eax, dword [esi + 4]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00403af0
lea esi, [eax + 0x10]
mov dword [ebp - 0x6ac], esi
push 0x5c
push esi
mov byte [ebp - 4], 1
call fcn.00571054
add esp, 8
test eax, eax
jne 0x439d50
or eax, 0xffffffff
jmp 0x439d54
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x6b8]
push eax
lea ecx, [ebp - 0x6ac]
call fcn.0041d2b0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, dword [ebp - 0x6b8]
lea edi, [eax - 0x10]
cmp edi, esi
je 0x439dd4
cmp dword [esi + 0xc], 0
jl 0x439dc5
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x439dc5
mov ecx, edi
call fcn.00403af0
mov dword [ebp - 0x6b4], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x439dba
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x6b4]
add eax, 0x10
mov dword [ebp - 0x6ac], eax
jmp 0x439dd4
push dword [eax - 0xc]
lea ecx, [ebp - 0x6ac]
push eax
call fcn.00403bb0
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x439ded
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5f
push 0x2d
lea ecx, [ebp - 0x6ac]
call fcn.0043e030
push 0x5f
push 0x20
lea ecx, [ebp - 0x6ac]
call fcn.0043e030
push 0x5f
push 0x2f
lea ecx, [ebp - 0x6ac]
call fcn.0043e030
push 0x5f
push 0x28
lea ecx, [ebp - 0x6ac]
call fcn.0043e030
push 0x5f
push 0x29
lea ecx, [ebp - 0x6ac]
call fcn.0043e030
mov esi, dword [ebp - 0x6ac]
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x439e93
test byte [ecx + 0x1c], 4
je 0x439e93
cmp dword [0x608f68], 8
lea edx, [ebp - 0x420]
push edx
mov eax, 0x608f54
mov edx, 0x5caaf4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x39
call fcn.00405920
add esp, 0x10
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x5cae00
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x6a8]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x6b4], eax
cmp eax, 0xffffffff
je 0x439fee
mov esi, eax
nop word [eax + eax]
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x5c6c90
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push 0x20
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x439f39
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x439f32
add ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x6a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
jne 0x439ee0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x608f30]
mov esi, dword [ebp - 0x6ac]
cmp ecx, 0x608f30
je 0x439fe5
test byte [ecx + 0x1c], 4
je 0x439fa5
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x3a
call fcn.004018a0
mov ecx, dword [0x608f30]
add esp, 0x10
cmp ecx, 0x608f30
je 0x439fe5
test byte [ecx + 0x1c], 4
je 0x439fe5
cmp dword [0x608f68], 8
mov eax, 0x608f54
push dword [ebp - 0x6b0]
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x3b
call fcn.004018a0
add esp, 0x10
imul ebx, dword [ebp - 0x6b0]
jmp 0x43a03d
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x43a03d
test byte [eax + 0x1c], 2
je 0x43a03d
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x458]
mov edi, 0x608f54
cmovae edi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5caaf4
push edi
mov ecx, 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43a059
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x43a0a1
test byte [ecx + 0x1c], 1
je 0x43a0a1
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x3d
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x458]
call fcn.0040a570
mov eax, ebx
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