Function at 0x404280
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x4042a8
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x404460
mov eax, dword [ebx]
push edi
push esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x404460
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x497d54
push edi
call esi
test eax, eax
je 0x404460
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
mov edx, dword [0x4ae214]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
mov edx, dword [0x4ae214]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
add eax, 0x10
push edx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 0x497d88
push eax
call fcn.00407630
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
mov eax, 4
lea ecx, [ebp - 0x18]
call fcn.00405cf0
push eax
lea ecx, [ebp - 0x10]
call fcn.00406470
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40438b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 2]
push edx
lea eax, [ebp - 8]
push 0x497d88
push eax
call fcn.00407630
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
mov eax, 4
lea ecx, [ebp - 0x18]
call fcn.00405cf0
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
push edx
push eax
lea ebx, [ebp - 0x10]
call fcn.004064e0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push 0x497d98
push edx
call fcn.00407630
mov eax, dword [ebp - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
mov ebx, 0x100
sub edx, ebx
add esp, 0xc
or ecx, edx
jge 0x40441d
push ebx
lea ecx, [ebp - 4]
call fcn.00406eb0
mov eax, dword [ebp - 4]
cmp dword [eax - 8], ebx
jge 0x40442c
push 0x80070057
call fcn.0040b800
xor ecx, ecx
mov dword [eax - 0xc], ebx
lea edx, [ebp - 0x14]
push edx
mov word [eax + 0x200], cx
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
call esi
test eax, eax
jne 0x40446e
lea ecx, [ebp - 8]
call fcn.00405660
lea ecx, [ebp - 0x10]
call fcn.00405660
lea ecx, [ebp - 4]
call fcn.00405660
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ebp - 4]
call fcn.00405f60
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push edx
push 0x4976f0
push eax
call fcn.00407630
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.00405660
lea ecx, [ebp - 0x10]
call fcn.00405660
mov ecx, esi
call fcn.00405660
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4