Function at 0x427320
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4718c6
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 0x48], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x47c], ecx
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea ecx, [ebp - 0x252]
push ecx
call fcn.004472f0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x254]
push eax
call fcn.0044c6a8
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x58b7b8
lea ecx, [ebp - 0x18]
call fcn.00406b70
mov dword [ebp - 4], 0
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x18]
call fcn.004069a0
movzx eax, al
test eax, eax
jne 0x4273ce
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00428e30
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x3b0], edx
push 0x5c
mov eax, dword [ebp - 0x3b0]
push eax
call fcn.00448407
add esp, 8
mov dword [ebp - 0x3ac], eax
cmp dword [ebp - 0x3ac], 0
jne 0x42740a
mov dword [ebp - 0x480], 0xffffffff
jmp 0x427419
mov ecx, dword [ebp - 0x3ac]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x480], ecx
mov edx, dword [ebp - 0x480]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x3b4], ecx
mov edx, dword [ebp - 0x3b4]
sub edx, dword [ebp - 0x28]
sub edx, 1
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x18]
call fcn.004061f0
mov byte [ebp - 4], 2
push 0x104
push 0x20
lea ecx, [ebp - 0x10]
call fcn.00405fa0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x40]
call fcn.004066d0
mov byte [ebp - 4], 4
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x25c], 0
jmp 0x427498
mov eax, dword [ebp - 0x258]
add eax, 1
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
cmp ecx, dword [ebp - 0x1c]
jge 0x427675
cmp dword [ebp - 0x258], 0
jl 0x4274ca
mov edx, dword [ebp - 0x44]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x3c4], eax
mov ecx, dword [ebp - 0x258]
cmp ecx, dword [ebp - 0x3c4]
jle 0x4274d4
push 0x80070057
call fcn.00405d90
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x258]
mov al, byte [edx]
mov byte [ebp - 0x25d], al
movsx ecx, byte [ebp - 0x25d]
cmp ecx, 0x30
jl 0x427670
movsx edx, byte [ebp - 0x25d]
cmp edx, 0x39
jg 0x427670
movzx eax, byte [ebp - 0x25d]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406500
mov edx, dword [ebp - 0x25c]
add edx, 1
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x258]
add eax, 1
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
cmp ecx, dword [ebp - 0x1c]
jg 0x427670
cmp dword [ebp - 0x264], 0
jl 0x42756c
mov edx, dword [ebp - 0x44]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x3d4], eax
mov ecx, dword [ebp - 0x264]
cmp ecx, dword [ebp - 0x3d4]
jle 0x427576
push 0x80070057
call fcn.00405d90
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x264]
mov al, byte [edx]
mov byte [ebp - 0x265], al
movsx ecx, byte [ebp - 0x265]
cmp ecx, 0x30
jl 0x4275a9
movsx edx, byte [ebp - 0x265]
cmp edx, 0x39
jg 0x4275a9
jmp 0x427489
lea ecx, [ebp - 0x270]
call fcn.00405e00
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x270], eax
lea ecx, [ebp - 0x10]
call fcn.00406160
mov dword [ebp - 0x3f0], eax
mov ecx, dword [ebp - 0x3f0]
push ecx
lea ecx, [ebp - 0x26c]
call fcn.00406c40
lea edx, [ebp - 0x270]
push edx
lea ecx, [ebp - 0x40]
call fcn.00406830
mov dword [ebp - 0x25c], 0
push 0x104
push 0x20
lea ecx, [ebp - 0x38c]
call fcn.00405fa0
mov dword [ebp - 0x484], eax
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406c40
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x38c]
sub edx, 0x10
mov dword [ebp - 0x41c], edx
mov ecx, dword [ebp - 0x41c]
call fcn.00405dc0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x26c]
sub eax, 0x10
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 0x420]
call fcn.00405dc0
jmp 0x427489
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x424], ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x424]
push eax
lea ecx, [ebp - 0x24]
call fcn.004089e0
mov dword [ebp - 0x14], 0
jmp 0x4276cc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], edx
lea ecx, [ebp - 0x24]
call fcn.00408ab0
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x394], eax
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x390], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x430], edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x430]
push ecx
lea ecx, [ebp - 0x39c]
call fcn.004089e0
lea edx, [ebp - 0x39c]
push edx
lea ecx, [ebp - 0x24]
call fcn.00429d30
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
movzx ecx, al
test ecx, ecx
je 0x42776d
lea ecx, [ebp - 0x24]
call fcn.00408a40
mov dword [ebp - 0x434], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x14]
jle 0x427768
lea ecx, [ebp - 0x24]
call fcn.00408a40
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x24]
call fcn.00408a40
add eax, 4
mov dword [ebp - 0x43c], eax
mov edx, dword [ebp - 0x47c]
add edx, 0xa0
mov dword [ebp - 0x438], edx
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x438]
call fcn.00406c40
jmp 0x42769a
mov dword [ebp - 0x274], 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
jbe 0x427964
mov edx, dword [ebp - 0x274]
push edx
call fcn.00443ea2
add esp, 4
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x427964
mov ecx, dword [ebp - 0x274]
push ecx
push 0
mov edx, dword [ebp - 0x278]
push edx
call fcn.004472f0
add esp, 0xc
mov eax, dword [ebp - 0x278]
push eax
mov ecx, dword [ebp - 0x274]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x42782a
push str.CRAPCloudWorker::ReadPackageInfo
push str._s____Cant_get_file_version.
call fcn.00402b50
add esp, 8
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x3a4], eax
mov ecx, dword [ebp - 0x3a4]
push ecx
call fcn.0044720c
add esp, 4
jmp 0x42796c
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x388], 0
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x388]
push eax
push 0x477d90
mov ecx, dword [ebp - 0x278]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x427881
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x3a8], edx
mov eax, dword [ebp - 0x3a8]
push eax
call fcn.0044720c
add esp, 4
jmp 0x42796c
mov cl, byte [0x4758ac]
mov byte [ebp - 0x384], cl
push 0x103
push 0
lea edx, [ebp - 0x383]
push edx
call fcn.004472f0
add esp, 0xc
mov eax, dword [ebp - 0x388]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x388]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x388]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x388]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push str._u._u._u._u
push 0x104
lea eax, [ebp - 0x384]
push eax
call fcn.0044749d
add esp, 0x1c
mov ecx, dword [ebp - 0x47c]
add ecx, 0x9c
mov dword [ebp - 0x444], ecx
lea edx, [ebp - 0x384]
test edx, edx
jne 0x427936
mov dword [ebp - 0x440], 0
jmp 0x42794b
lea eax, [ebp - 0x384]
push eax
call fcn.004482c0
add esp, 4
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
push ecx
lea edx, [ebp - 0x384]
push edx
mov ecx, dword [ebp - 0x444]
call fcn.004075a0
xor eax, eax
jne 0x42776d
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00407400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0043ed40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00406c00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00406c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406c00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret 4