Function at 0x402230
Capabilities:
Get file size
Get file version info

Disassembly:
mov eax, 0x2308
call fcn.00410a40
push ebp
push esi
push edi
mov edx, dword [esp + 0x2318]
mov ecx, 0x32
mov eax, 0x20202020
lea edi, [esp + 0x314]
lea ebp, [esp + 0x314]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], 0x1000
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x41aa04]
not ecx
dec ecx
cmp eax, 0x3e8
mov byte [esp + ecx + 0x314], 0x20
jae 0x4022de
mov edi, 0x41a4f0
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Drivers_
jmp 0x40234b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x41a4f0
cmp dword [ecx + edx - 3], 0x737973
jne 0x402325
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.32Drivers_
jmp 0x40234b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x415108
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x18]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 1
lea eax, [esp + 0x28]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402405
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x32c]
push str._8d_b
push ecx
call edi
push 0x415374
mov byte [esp + 0x342], 0
call fcn.004029f0
lea edx, [esp + 0x324]
push edx
call fcn.004029f0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402439
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push str.doesnt_exist
lea eax, [esp + 0x32c]
push 0x4153e4
push eax
call edi
push 0x415374
call fcn.004029f0
lea ecx, [esp + 0x324]
push ecx
call fcn.004029f0
add esp, 0x14
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [esp + 0x314]
lea edx, [esp + 0x14]
push ecx
push eax
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402597
push 0x4b0
push 0x804
lea eax, [esp + 0x11c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1314]
lea eax, [esp + 0x114]
push ecx
push edx
lea ecx, [esp + 0x31c]
push eax
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4024cb
push 0x4153b4
call fcn.004029f0
mov edx, dword [esp + 0x1318]
push edx
call fcn.004029f0
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x2308
ret
push 0x4b0
push 0x809
lea eax, [esp + 0x11c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1314]
lea eax, [esp + 0x114]
push ecx
push edx
lea ecx, [esp + 0x31c]
push eax
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402531
push 0x4153b4
call fcn.004029f0
mov edx, dword [esp + 0x1318]
push edx
call fcn.004029f0
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x2308
ret
push 0x4b0
push 0x409
lea eax, [esp + 0x11c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1314]
lea eax, [esp + 0x114]
push ecx
push edx
lea ecx, [esp + 0x31c]
push eax
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4025a4
push 0x4153b4
call fcn.004029f0
mov edx, dword [esp + 0x1318]
push edx
call fcn.004029f0
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x2308
ret
push 0x4153a0
call fcn.004029f0
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x2308
ret