Function at 0x10004569
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x10013010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi], ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x88], ebx
mov dword [edi], ebx
call fcn.1000665f
push eax
call fcn.1000669a
push 0x1000156c
push eax
call fcn.1000651f
test eax, eax
jne 0x10004751
push 0x48
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.100072c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [ebp - 0x78], eax
cmp eax, ebx
jne 0x100045e6
xor eax, eax
jmp 0x1000481c
xor eax, eax
lea edi, [ebp - 0x18]
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 - 0x18]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
je 0x1000464a
push ebx
push ebx
push 0x1000155c
mov edi, 0x10001540
push edi
push 0x306
mov esi, 0x10001270
push esi
call fcn.10006b9b
add esp, 0x18
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.WINMM.dll_mmioClose]
test eax, eax
je 0x100045df
push ebx
push ebx
push 0x10001534
push edi
push 0x309
push esi
call fcn.10006b9b
add esp, 0x18
jmp 0x100045df
xor eax, eax
lea edi, [ebp - 0x2c]
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 - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x2c], 0x73726576
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
je 0x100046b3
push ebx
push ebx
push 0x1000155c
mov edi, 0x10001540
push edi
push 0x315
mov esi, 0x10001270
push esi
call fcn.10006b9b
add esp, 0x18
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.WINMM.dll_mmioClose]
test eax, eax
je 0x100045df
push ebx
push ebx
push 0x10001534
push edi
push 0x318
jmp 0x1000463f
push 8
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.WINMM.dll_mmioRead]
push ebx
cmp eax, 8
je 0x1000470e
push ebx
push 0x10001528
mov edi, 0x10001540
push edi
push 0x31f
mov esi, 0x10001270
push esi
call fcn.10006b9b
add esp, 0x18
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.WINMM.dll_mmioClose]
test eax, eax
je 0x100045df
push ebx
push ebx
push 0x10001534
push edi
push 0x322
jmp 0x1000463f
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [esi], eax
mov eax, dword [ebp - 0x80]
mov dword [ecx], eax
call dword [sym.imp.WINMM.dll_mmioClose]
test eax, eax
je 0x10004749
push ebx
push ebx
push 0x10001534
push 0x10001540
push 0x32c
push 0x10001270
call fcn.10006b9b
add esp, 0x18
xor eax, eax
inc eax
jmp 0x1000481c
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x78]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x10004816
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x7c], eax
cmp eax, ebx
je 0x100047f2
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x8c]
push dword [ebp - 0x78]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100047cc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x10001524
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x34
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100047cc
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x100047cc
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov dword [ebp - 0x88], 1
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x10004816
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10001518
push 0x10001540
push 0x348
jmp 0x10004809
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10001508
push 0x10001540
push 0x34a
push 0x10001270
call fcn.10006b9b
add esp, 0x18
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100072a1
leave
ret 0xc