Function at 0x4393a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8843
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x659fd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x250], ebx
push str.vcruntime140.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x439937
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0040cce6
mov ecx, eax
test ecx, ecx
je 0x439a1f
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a29
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea edi, [eax + 0x10]
mov dword [ebp - 0x244], edi
mov byte [ebp - 4], 1
call fcn.0040cce6
mov ecx, eax
test ecx, ecx
je 0x439a30
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a3a
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x4394b0
movzx eax, ax
lea ecx, [ebp - 0x234]
push eax
call fcn.0040d540
mov esi, dword [ebp - 0x234]
jmp 0x439638
lea ebx, [ebp - 0x218]
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4394c0
sub ebx, ecx
sar ebx, 1
jne 0x439578
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov ebx, dword [ecx]
je 0x439638
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x439508
cmp dword [esi - 8], 0
jl 0x439a41
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x439638
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x439545
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a4b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439a4b
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a54
lock inc dword [ebx + 0x14]
lea eax, [ebx + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
jmp 0x439638
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
jmp 0x439638
mov eax, dword [esi - 0xc]
lea edx, [ebp - 0x218]
sub edx, esi
mov dword [ebp - 0x24c], eax
sar edx, 1
mov dword [ebp - 0x238], edx
test ebx, ebx
js 0x439a5d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4395c2
push ebx
lea ecx, [ebp - 0x234]
call fcn.00401fd8
mov esi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp - 0x24c]
ja 0x439612
mov eax, dword [esi - 8]
lea ecx, [ebx + ebx]
lea edx, [esi + edx*2]
test ecx, ecx
je 0x439626
test edx, edx
jne 0x4395ed
call fcn.005af242
mov dword [eax], 0x16
call fcn.005af169
jmp 0x439626
add eax, eax
cmp eax, ecx
jae 0x439605
call fcn.005af242
mov dword [eax], 0x22
call fcn.005af169
jmp 0x439626
push ecx
push edx
push esi
call fcn.005abfe0
add esp, 0xc
jmp 0x439626
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [esi - 8]
push esi
call fcn.004021b4
add esp, 0x10
cmp ebx, dword [esi - 8]
jg 0x439a41
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x4397b1
push eax
call fcn.005b4418
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4397b1
push ebx
push dword [ebp - 0x24c]
push dword [ebp - 0x258]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x439691
push ebx
call fcn.005b1e01
add esp, 4
jmp 0x4397b1
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], 0
push eax
lea eax, [ebp - 0x238]
push eax
push 0x62a0f8
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4397b1
sub esp, 8
lea ecx, [ebp - 0x310]
call fcn.00413c70
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x238]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
lea ecx, [ebp - 0x300]
push eax
call fcn.0042f1c0
push ecx
mov edx, 0x628254
mov ecx, eax
call fcn.00410580
add esp, 4
mov ecx, eax
call fcn.0042f1c0
push ecx
mov edx, 0x628254
mov ecx, eax
call fcn.00410580
add esp, 4
mov ecx, eax
call fcn.0042f1c0
push ecx
mov edx, 0x628254
mov ecx, eax
call fcn.00410580
add esp, 4
mov ecx, eax
call fcn.0042f1c0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00414520
mov byte [ebp - 4], 5
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
jb 0x43976c
mov edx, dword [ebp - 0x230]
test edx, edx
jne 0x43976c
xor ecx, ecx
jmp 0x439780
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439771
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x244]
call fcn.004020e5
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.004076c4
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 3
call fcn.004138a0
mov edi, dword [ebp - 0x244]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4397f8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a67
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439a67
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0045d980
mov ecx, dword [ebp - 0x250]
push eax
push 0
push 0x11783
mov byte [ebp - 4], 6
call fcn.0045cfb0
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.00438f40
mov byte [ebp - 0x240], 1
call fcn.0040cce6
mov ecx, eax
test ecx, ecx
je 0x439a6e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a78
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x23c], eax
push 3
push 0x62e4b0
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 7
call fcn.004020e5
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp - 0x23c]
push esi
push 0
mov ecx, dword [eax]
push 0x11784
call fcn.00417e80
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4398db
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a7f
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439a7f
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x254]
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4399e7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a86
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439a86
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4399e7
mov byte [ebp - 0x240], 0
call fcn.0040cce6
mov ecx, eax
test ecx, ecx
je 0x439a8d
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a97
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x23c], eax
push 2
push 0x625fe8
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 9
call fcn.004020e5
mov esi, dword [ebp - 0x23c]
mov ecx, dword [ebx]
push esi
push 0
push 0x11784
call fcn.00417e80
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4399dd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439a9e
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439a9e
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x254]
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4399f9
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x248], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a7b5f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022df
call edx
jmp 0x439449
push 0x80004005
call fcn.004022df
call edx
jmp 0x43947c
push 0x80070057
call fcn.004022df
mov ecx, edx
call esi
jmp 0x439545
mov ecx, ebx
call edx
jmp 0x43956a
push 0x80070057
call fcn.004022df
call edx
jmp 0x4397f8
push 0x80004005
call fcn.004022df
call edx
jmp 0x43985d
call edx
jmp 0x4398db
call edx
jmp 0x4399e7
push 0x80004005
call fcn.004022df
call edx
jmp 0x439964
call edx
jmp 0x4399dd