Function at 0x403f8e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.00405f11
push eax
call fcn.00405f4c
push 0x401560
push eax
call fcn.00405dd5
test eax, eax
jne 0x404150
push 0x12
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WINMM.dll_mmioOpenA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x404109
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x20
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
je 0x40404c
push ebx
push ebx
push 0x401550
mov edi, 0x401534
push edi
push 0x306
mov esi, 0x401240
push esi
call fcn.004062d4
add esp, 0x18
push ebx
push dword [ebp + 8]
call dword [sym.imp.WINMM.dll_mmioClose]
test eax, eax
je 0x404109
push ebx
push ebx
push 0x401528
push edi
push 0x309
jmp 0x404100
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x34], 0x73726576
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
je 0x4040b1
push ebx
push ebx
push 0x401550
mov edi, 0x401534
push edi
push 0x315
mov esi, 0x401240
push esi
call fcn.004062d4
add esp, 0x18
push ebx
push dword [ebp + 8]
call dword [sym.imp.WINMM.dll_mmioClose]
test eax, eax
je 0x404109
push ebx
push ebx
push 0x401528
push edi
push 0x318
jmp 0x404100
push 8
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WINMM.dll_mmioRead]
cmp eax, 8
push ebx
je 0x404110
push ebx
push 0x40151c
mov edi, 0x401534
push edi
push 0x31f
mov esi, 0x401240
push esi
call fcn.004062d4
add esp, 0x18
push ebx
push dword [ebp + 8]
call dword [sym.imp.WINMM.dll_mmioClose]
test eax, eax
je 0x404109
push ebx
push ebx
push 0x401528
push edi
push 0x322
push esi
call fcn.004062d4
add esp, 0x18
xor eax, eax
jmp 0x40420f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.WINMM.dll_mmioClose]
test eax, eax
je 0x404148
push ebx
push ebx
push 0x401528
push 0x401534
push 0x32c
push 0x401240
call fcn.004062d4
add esp, 0x18
xor eax, eax
inc eax
jmp 0x40420f
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40420c
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x4041e8
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4041c2
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x401518
push dword [ebp + 0x10]
mov dword [ebp + 8], 0x34
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4041c2
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4041c2
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x40420c
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40150c
push 0x401534
push 0x348
jmp 0x4041ff
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4014fc
push 0x401534
push 0x34a
push 0x401240
call fcn.004062d4
add esp, 0x18
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc