Function at 0x40b478
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x230], eax
mov edi, edx
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], edi
push eax
push 0x4106e0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
jne 0x40b4f6
lea edx, [ebp - 0x224]
call fcn.0040e5e6
test eax, eax
je 0x40b75b
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x224]
mov dword [edi], eax
and dword [ecx], ebx
jmp 0x40b75b
mov eax, dword [ebp - 0x224]
push ebx
and dword [eax], 0
mov eax, dword [ebp - 0x230]
and dword [eax], 0
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x40b533
push 0x4106e0
push 0x40211c
push 0x403d2c
push esi
call fcn.00409fd2
add esp, 0x10
jmp 0x40b74f
push edi
push ebx
push dword [ebp - 0x234]
mov ebx, 0x4106e0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x40b56b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push 0x402168
push 0x403d60
push esi
call fcn.00409fd2
add esp, 0x14
jmp 0x40b747
push esi
push ecx
lea eax, [ebp - 0x244]
mov edx, 0x403d8c
push eax
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
call fcn.0040b776
test eax, eax
je 0x40b5a7
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x23c]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx], eax
push esi
push ecx
lea eax, [ebp - 0x22c]
mov edx, 0x403d90
push eax
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.0040b776
test eax, eax
je 0x40b753
mov eax, dword [ebp - 0x220]
mov ebx, dword [eax]
movzx eax, bx
push eax
push 0x402ba4
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.0040a17e
mov ecx, dword [ebp - 0x220]
add esp, 0x10
add ecx, 4
cmp dword [ebp - 0x22c], 4
jmp 0x40b656
movzx eax, word [ecx]
push eax
push 0x403dac
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.0040a17e
add esp, 0x10
test eax, eax
js 0x40b65e
lea eax, [ebp - 0x14]
mov edx, 0x100
push eax
lea ecx, [ebp - 0x218]
call fcn.00404a89
test eax, eax
js 0x40b65e
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x220]
sub eax, 4
add ecx, 4
mov dword [ebp - 0x22c], eax
cmp eax, 4
mov dword [ebp - 0x220], ecx
ja 0x40b608
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll__strdup]
pop ecx
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
test eax, eax
jne 0x40b68c
push 0x4106e0
push 0x40211c
push 0x403db0
jmp 0x40b73e
push dword [ebp - 0x21c]
shr ebx, 0x10
lea eax, [ebp - 0x118]
push ebx
push 0x403de8
push 0x100
push eax
call fcn.0040a17e
add esp, 0x14
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x118]
push esi
push ecx
push eax
lea eax, [ebp - 0x228]
mov ecx, edi
push eax
call fcn.0040b776
test eax, eax
jne 0x40b70d
push ebx
push dword [ebp - 0x21c]
lea eax, [ebp - 0x118]
push 0x403de8
push 0x100
push eax
call fcn.0040a17e
add esp, 0x14
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x118]
push esi
push ecx
push eax
lea eax, [ebp - 0x228]
mov ecx, edi
push eax
call fcn.0040b776
cmp dword [ebp - 0x228], 0
je 0x40b753
push dword [ebp - 0x228]
call dword [sym.imp.msvcrt.dll__strdup]
pop ecx
mov ecx, dword [ebp - 0x224]
mov dword [ecx], eax
test eax, eax
jne 0x40b753
push 0x4106e0
push 0x40211c
push 0x403e10
push esi
call fcn.00409fd2
add esp, 0x10
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x40b75e
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f060
mov esp, ebp
pop ebp
ret 0x10