Function at 0x10031a7d
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 0x10031b00
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031af6
test byte [eax + 0x1c], 1
je 0x10031af6
cmp byte [eax + 0x19], 2
jb 0x10031af6
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
mov edx, 0x1000dbe4
pop ecx
call fcn.100122b8
mov esi, 0x80070057
jmp 0x10031e3d
test ecx, ecx
jne 0x10031b26
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031af6
test byte [eax + 0x1c], 1
je 0x10031af6
cmp byte [eax + 0x19], 2
jb 0x10031af6
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
jmp 0x10031aeb
and dword [ecx], ebx
push 0x10004e6c
push 0x10000
call fcn.10093fa2
mov dword [ebp - 0x118], eax
pop ecx
pop ecx
test eax, eax
jne 0x10031b7a
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10031b70
test byte [ecx + 0x1c], 1
je 0x10031b70
cmp byte [ecx + 0x19], 2
jb 0x10031b70
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x12
mov edx, 0x1000dbe4
pop ecx
call fcn.100122b8
mov esi, 0x8007000e
jmp 0x10031e3d
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 0x10031be5
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031bc7
test byte [eax + 0x1c], 1
je 0x10031bc7
cmp byte [eax + 0x19], 2
jb 0x10031bc7
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 0x10031e3d
movzx esi, si
or esi, 0x80070000
jmp 0x10031e3d
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 0x10031e0d
mov edx, eax
push 0x3a
pop eax
cmp ax, dx
je 0x10031c21
sub ebx, 2
inc ecx
movzx eax, word [ebx]
mov edx, eax
cmp word [ebp - 0x124], ax
jne 0x10031c07
cmp ecx, 1
jl 0x10031e0d
push 0
add ebx, 2
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x10031c73
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10031bc7
test byte [ecx + 0x1c], 1
je 0x10031bc7
cmp byte [ecx + 0x19], 2
jb 0x10031bc7
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
jmp 0x10031bbc
push 0x10004e6c
push eax
call fcn.10093fa2
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10031cb9
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10031b70
test byte [ecx + 0x1c], 1
je 0x10031b70
cmp byte [ecx + 0x19], 2
jb 0x10031b70
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x16
jmp 0x10031b65
push edi
push dword [ebp - 0x114]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x10031cfe
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031bc7
test byte [eax + 0x1c], 1
je 0x10031bc7
cmp byte [eax + 0x19], 2
jb 0x10031bc7
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x17
jmp 0x10031bbc
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 0x10031d88
cmp dword [ebp - 0x128], esi
je 0x10031d88
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.10032281
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 0x10031d88
cmp dword [ebp - 0x10c], esi
jne 0x10031e3d
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 0x10031db2
cmp dword [ebp - 0x10c], esi
jne 0x10031e3d
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 0x10031dd8
cmp dword [ebp - 0x10c], esi
jne 0x10031e3d
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 0x10031dfe
cmp dword [ebp - 0x10c], esi
jne 0x10031e3d
xor ecx, ecx
mov esi, 0x80004005
mov dword [ebp - 0x110], ecx
jmp 0x10031e3f
mov eax, dword [section..data]
cmp eax, section..data
je 0x10031e38
test byte [eax + 0x1c], 1
je 0x10031e38
cmp byte [eax + 0x19], 2
jb 0x10031e38
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 0x10031e5d
cmp dword [ebp - 0x114], 0
jne 0x10031e5d
test ebx, ebx
je 0x10031e5d
mov dword [ebp - 0x110], ebx
mov esi, ecx
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x10031e8b
cmp word [eax], cx
je 0x10031e8b
push ecx
push eax
push ecx
mov ecx, dword [ebp - 0x120]
call fcn.10032231
push dword [ebp - 0x130]
mov ecx, dword [ebp - 0x120]
call fcn.100321d4
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x10031e9d
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
test edi, edi
je 0x10031ea9
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.10093db0
leave
ret 8