Function at 0x10031aaf
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1009d7a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov eax, ecx
mov ecx, dword [ebp + 8]
mov ebx, esi
and dword [ebp - 0x114], ebx
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x118], esi
push edi
mov edi, esi
test eax, eax
jne 0x10031b32
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031b28
test byte [eax + 0x1c], 1
je 0x10031b28
cmp byte [eax + 0x19], 2
jb 0x10031b28
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
mov edx, 0x1000dbe4
pop ecx
call fcn.100122b8
mov esi, 0x80070057
jmp 0x10031e6f
test ecx, ecx
jne 0x10031b58
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031b28
test byte [eax + 0x1c], 1
je 0x10031b28
cmp byte [eax + 0x19], 2
jb 0x10031b28
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
jmp 0x10031b1d
and dword [ecx], ebx
push 0x10004e6c
push 0x10000
call fcn.10093e02
mov dword [ebp - 0x118], eax
pop ecx
pop ecx
test eax, eax
jne 0x10031bac
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10031ba2
test byte [ecx + 0x1c], 1
je 0x10031ba2
cmp byte [ecx + 0x19], 2
jb 0x10031ba2
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x12
mov edx, 0x1000dbe4
pop ecx
call fcn.100122b8
mov esi, 0x8007000e
jmp 0x10031e6f
push 0x7fff
push eax
push dword [ebp - 0x11c]
xor ecx, ecx
mov word [eax + 0xfffe], cx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10031c17
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031bf9
test byte [eax + 0x1c], 1
je 0x10031bf9
cmp byte [eax + 0x19], 2
jb 0x10031bf9
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
mov edx, 0x1000dbe4
pop ecx
call fcn.100122b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10031e6f
movzx esi, si
or esi, 0x80070000
jmp 0x10031e6f
mov edx, dword [ebp - 0x118]
xor ecx, ecx
push 0x5c
lea ebx, [edx + eax*2]
movzx eax, word [ebx]
pop edx
mov dword [ebp - 0x124], edx
cmp dx, ax
je 0x10031e3f
mov edx, eax
push 0x3a
pop eax
cmp ax, dx
je 0x10031c53
sub ebx, 2
inc ecx
movzx eax, word [ebx]
mov edx, eax
cmp word [ebp - 0x124], ax
jne 0x10031c39
cmp ecx, 1
jl 0x10031e3f
push 0
add ebx, 2
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x10031ca5
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10031bf9
test byte [ecx + 0x1c], 1
je 0x10031bf9
cmp byte [ecx + 0x19], 2
jb 0x10031bf9
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
jmp 0x10031bee
push 0x10004e6c
push eax
call fcn.10093e02
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10031ceb
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10031ba2
test byte [ecx + 0x1c], 1
je 0x10031ba2
cmp byte [ecx + 0x19], 2
jb 0x10031ba2
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x16
jmp 0x10031b97
push edi
push dword [ebp - 0x114]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x10031d30
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031bf9
test byte [eax + 0x1c], 1
je 0x10031bf9
cmp byte [eax + 0x19], 2
jb 0x10031bf9
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x17
jmp 0x10031bee
mov eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x1000da54
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10031dba
cmp dword [ebp - 0x128], esi
je 0x10031dba
mov ecx, dword [ebp - 0x12c]
push 0x1000da88
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x1000daa8
lea eax, [ebp - 0x108]
push 0x80
push eax
call fcn.100322b3
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10031dba
cmp dword [ebp - 0x10c], esi
jne 0x10031e6f
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x1000dae0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10031de4
cmp dword [ebp - 0x10c], esi
jne 0x10031e6f
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x1000db38
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10031e0a
cmp dword [ebp - 0x10c], esi
jne 0x10031e6f
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x1000db90
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10031e30
cmp dword [ebp - 0x10c], esi
jne 0x10031e6f
xor ecx, ecx
mov esi, 0x80004005
mov dword [ebp - 0x110], ecx
jmp 0x10031e71
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031e6a
test byte [eax + 0x1c], 1
je 0x10031e6a
cmp byte [eax + 0x19], 2
jb 0x10031e6a
push dword [eax + 0x14]
mov edx, 0x1000dbe4
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.100122b8
mov esi, 0x80004005
xor ecx, ecx
cmp dword [ebp - 0x11c], 0
jne 0x10031e8f
cmp dword [ebp - 0x114], 0
jne 0x10031e8f
test ebx, ebx
je 0x10031e8f
mov dword [ebp - 0x110], ebx
mov esi, ecx
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x10031ebd
cmp word [eax], cx
je 0x10031ebd
push ecx
push eax
push ecx
mov ecx, dword [ebp - 0x120]
call fcn.10032263
push dword [ebp - 0x130]
mov ecx, dword [ebp - 0x120]
call fcn.10032206
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x10031ecf
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
test edi, edi
je 0x10031edb
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10093c10
leave
ret 8