Function at 0x1002cf80
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1009a7a8]
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 0x1002d003
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002cff9
test byte [eax + 0x1c], 4
je 0x1002cff9
cmp byte [eax + 0x19], 2
jb 0x1002cff9
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
mov edx, 0x1000dbd4
pop ecx
call fcn.10012303
mov esi, 0x80070057
jmp 0x1002d340
test ecx, ecx
jne 0x1002d029
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002cff9
test byte [eax + 0x1c], 4
je 0x1002cff9
cmp byte [eax + 0x19], 2
jb 0x1002cff9
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
jmp 0x1002cfee
and dword [ecx], ebx
push 0x10004e5c
push 0x10000
call fcn.100905d2
mov dword [ebp - 0x118], eax
pop ecx
pop ecx
test eax, eax
jne 0x1002d07d
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002d073
test byte [ecx + 0x1c], 4
je 0x1002d073
cmp byte [ecx + 0x19], 2
jb 0x1002d073
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x12
mov edx, 0x1000dbd4
pop ecx
call fcn.10012303
mov esi, 0x8007000e
jmp 0x1002d340
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 0x1002d0e8
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002d0ca
test byte [eax + 0x1c], 4
je 0x1002d0ca
cmp byte [eax + 0x19], 2
jb 0x1002d0ca
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
mov edx, 0x1000dbd4
pop ecx
call fcn.10012303
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1002d340
movzx esi, si
or esi, 0x80070000
jmp 0x1002d340
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 0x1002d310
mov edx, eax
push 0x3a
pop eax
cmp ax, dx
je 0x1002d124
sub ebx, 2
inc ecx
movzx eax, word [ebx]
mov edx, eax
cmp word [ebp - 0x124], ax
jne 0x1002d10a
cmp ecx, 1
jl 0x1002d310
push 0
add ebx, 2
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x1002d176
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002d0ca
test byte [ecx + 0x1c], 4
je 0x1002d0ca
cmp byte [ecx + 0x19], 2
jb 0x1002d0ca
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
jmp 0x1002d0bf
push 0x10004e5c
push eax
call fcn.100905d2
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x1002d1bc
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002d073
test byte [ecx + 0x1c], 4
je 0x1002d073
cmp byte [ecx + 0x19], 2
jb 0x1002d073
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x16
jmp 0x1002d068
push edi
push dword [ebp - 0x114]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1002d201
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002d0ca
test byte [eax + 0x1c], 4
je 0x1002d0ca
cmp byte [eax + 0x19], 2
jb 0x1002d0ca
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x17
jmp 0x1002d0bf
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 0x1000da44
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002d28b
cmp dword [ebp - 0x128], esi
je 0x1002d28b
mov ecx, dword [ebp - 0x12c]
push 0x1000da78
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x1000da98
lea eax, [ebp - 0x108]
push 0x80
push eax
call fcn.1002d788
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 0x1002d28b
cmp dword [ebp - 0x10c], esi
jne 0x1002d340
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x1000dad0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002d2b5
cmp dword [ebp - 0x10c], esi
jne 0x1002d340
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x1000db28
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002d2db
cmp dword [ebp - 0x10c], esi
jne 0x1002d340
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x1000db80
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002d301
cmp dword [ebp - 0x10c], esi
jne 0x1002d340
xor ecx, ecx
mov esi, 0x80004005
mov dword [ebp - 0x110], ecx
jmp 0x1002d342
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002d33b
test byte [eax + 0x1c], 4
je 0x1002d33b
cmp byte [eax + 0x19], 2
jb 0x1002d33b
push dword [eax + 0x14]
mov edx, 0x1000dbd4
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.10012303
mov esi, 0x80004005
xor ecx, ecx
cmp dword [ebp - 0x11c], 0
jne 0x1002d360
cmp dword [ebp - 0x114], 0
jne 0x1002d360
test ebx, ebx
je 0x1002d360
mov dword [ebp - 0x110], ebx
mov esi, ecx
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x1002d38e
cmp word [eax], cx
je 0x1002d38e
push ecx
push eax
push ecx
mov ecx, dword [ebp - 0x120]
call fcn.1002d736
push dword [ebp - 0x130]
mov ecx, dword [ebp - 0x120]
call fcn.1002d6d9
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x1002d3a0
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
test edi, edi
je 0x1002d3ac
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.100903e0
mov esp, ebp
pop ebp
ret 8