Function at 0x10002178
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x5e0]
sub esp, 0x660
mov eax, dword [0x1002b2e0]
xor eax, ebp
mov dword [ebp + 0x5dc], eax
mov eax, dword [ebp + 0x5e8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x5ec]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x5f0]
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x5f4]
mov esi, 0x208
xor ebx, ebx
push esi
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x1c6]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x60], edi
mov word [ebp + 0x1c4], bx
call fcn.1000dd80
add esp, 0xc
cmp edi, ebx
je 0x100021ff
cmp word [edi], bx
je 0x100021ff
mov edi, 0x104
push edi
push dword [ebp - 0x60]
lea eax, [ebp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x10002213
mov edi, 0x104
push edi
lea eax, [ebp + 0x1c4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x46]
push ebx
push eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x48], bx
call fcn.1000dd80
add esp, 0xc
push ebx
lea eax, [ebp + 0x1c4]
push eax
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x49], bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [ebp - 0x50], eax
jne 0x1000224f
xor al, al
jmp 0x100024bf
inc eax
push eax
call fcn.1000c309
cmp eax, ebx
pop ecx
mov dword [ebp - 0x58], eax
je 0x10002248
mov eax, dword [ebp - 0x50]
inc eax
push eax
push ebx
push dword [ebp - 0x58]
call fcn.1000dd80
add esp, 0xc
push dword [ebp - 0x58]
lea eax, [ebp + 0x1c4]
push dword [ebp - 0x50]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100024b3
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x58]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100024b3
test dword [ebp - 0x64], 0xfffffffc
mov dword [ebp - 0x50], ebx
jbe 0x100024b3
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
lea eax, [eax + ecx*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x10027754
push ecx
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.1000ddfa
add esp, 0x18
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0x54], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10002300
cmp dword [ebp - 0x5c], ebx
ja 0x10002313
mov eax, dword [ebp - 0x64]
inc dword [ebp - 0x50]
shr eax, 2
cmp dword [ebp - 0x50], eax
jb 0x100022b7
jmp 0x100024b3
push esi
lea eax, [ebp + 0x3d2]
push ebx
push eax
mov word [ebp + 0x3d0], bx
call fcn.1000dd80
add esp, 0xc
cmp dword [ebp - 0x5c], edi
ja 0x10002333
mov edi, dword [ebp - 0x5c]
push edi
push dword [ebp - 0x54]
lea eax, [ebp + 0x3d0]
push eax
call fcn.1000decb
add esp, 0xc
cmp word [ebp + 0x3d0], bx
lea eax, [ebp + 0x3d0]
mov dword [ebp - 0x54], eax
je 0x10002370
cmp word [eax], 0x2c
jne 0x10002366
mov word [eax], 0x2e
mov eax, dword [ebp - 0x54]
inc eax
inc eax
mov dword [ebp - 0x54], eax
cmp word [eax], bx
jne 0x10002358
lea eax, [ebp + 0x3d0]
push 0x2e
push eax
mov byte [ebp - 0x49], bl
call fcn.1000df08
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x100024b3
lea eax, [ebp + 0x3d0]
push eax
mov word [esi], bx
call fcn.1000df2a
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x3d0]
push 0x2e
push eax
mov word [esi], 0x2e
call fcn.1000df08
add esp, 0xc
cmp eax, ebx
je 0x100024b3
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x100023cc
cmp cx, 0x39
jbe 0x100023d0
inc eax
inc eax
jmp 0x100023bd
cmp word [eax], bx
mov dword [ebp - 0x50], eax
je 0x100024b3
cmp word [eax], 0x30
mov esi, eax
jb 0x100023f2
cmp word [esi], 0x39
ja 0x100023f2
inc esi
inc esi
cmp word [esi], 0x30
jae 0x100023e4
movzx ecx, word [esi]
cmp cx, bx
je 0x100024b3
push eax
movzx edi, cx
mov word [esi], bx
call fcn.1000df2a
push 0x2e
push dword [ebp - 0x50]
mov dword [ebp - 0x7c], eax
mov word [esi], di
call fcn.1000df08
add esp, 0xc
cmp eax, ebx
je 0x100024b3
movzx ecx, word [eax]
cmp cx, bx
je 0x100024b3
cmp cx, 0x30
jb 0x1000243d
cmp cx, 0x39
jbe 0x10002447
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
jne 0x10002431
cmp word [eax], bx
je 0x100024b3
cmp word [eax], 0x30
mov esi, eax
jb 0x10002462
cmp word [esi], 0x39
ja 0x10002462
inc esi
inc esi
cmp word [esi], 0x30
jae 0x10002454
push eax
mov word [esi], bx
call fcn.1000df2a
mov edi, eax
lea eax, [esi + 2]
cmp eax, ebx
pop ecx
je 0x10002483
cmp word [eax], bx
je 0x10002483
push eax
call fcn.1000df2a
pop ecx
jmp 0x10002485
mov eax, ebx
mov ecx, dword [ebp - 0x68]
cmp ecx, ebx
je 0x10002491
mov edx, dword [ebp - 0x78]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x80]
cmp ecx, ebx
je 0x1000249d
mov edx, dword [ebp - 0x7c]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x74]
cmp ecx, ebx
je 0x100024a6
mov dword [ecx], edi
mov ecx, dword [ebp - 0x6c]
cmp ecx, ebx
je 0x100024af
mov dword [ecx], eax
mov byte [ebp - 0x49], 1
push dword [ebp - 0x58]
call fcn.1000d1e1
mov al, byte [ebp - 0x49]
pop ecx
mov ecx, dword [ebp + 0x5dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d1e6
add ebp, 0x5e0
leave
ret