Function at 0x4397c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9743
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x65afd4]
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 0x439d57
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 0x439e3f
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439e49
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 0x439e50
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439e5a
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 0x4398d0
movzx eax, ax
lea ecx, [ebp - 0x234]
push eax
call fcn.0040d540
mov esi, dword [ebp - 0x234]
jmp 0x439a58
lea ebx, [ebp - 0x218]
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4398e0
sub ebx, ecx
sar ebx, 1
jne 0x439998
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov ebx, dword [ecx]
je 0x439a58
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x439928
cmp dword [esi - 8], 0
jl 0x439e61
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x439a58
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x439965
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439e6b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439e6b
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 0x439e74
lock inc dword [ebx + 0x14]
lea eax, [ebx + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
jmp 0x439a58
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
jmp 0x439a58
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 0x439e7d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4399e2
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 0x439a32
mov eax, dword [esi - 8]
lea ecx, [ebx + ebx]
lea edx, [esi + edx*2]
test ecx, ecx
je 0x439a46
test edx, edx
jne 0x439a0d
call fcn.005b0142
mov dword [eax], 0x16
call fcn.005b0069
jmp 0x439a46
add eax, eax
cmp eax, ecx
jae 0x439a25
call fcn.005b0142
mov dword [eax], 0x22
call fcn.005b0069
jmp 0x439a46
push ecx
push edx
push esi
call fcn.005acee0
add esp, 0xc
jmp 0x439a46
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 0x439e61
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 0x439bd1
push eax
call fcn.005b5318
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x439bd1
push ebx
push dword [ebp - 0x24c]
push dword [ebp - 0x258]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x439ab1
push ebx
call fcn.005b2d01
add esp, 4
jmp 0x439bd1
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], 0
push eax
lea eax, [ebp - 0x238]
push eax
push 0x62b118
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x439bd1
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, 0x629274
mov ecx, eax
call fcn.00410580
add esp, 4
mov ecx, eax
call fcn.0042f1c0
push ecx
mov edx, 0x629274
mov ecx, eax
call fcn.00410580
add esp, 4
mov ecx, eax
call fcn.0042f1c0
push ecx
mov edx, 0x629274
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 0x439b8c
mov edx, dword [ebp - 0x230]
test edx, edx
jne 0x439b8c
xor ecx, ecx
jmp 0x439ba0
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439b91
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 0x439c18
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439e87
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439e87
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.0045e870
mov ecx, dword [ebp - 0x250]
push eax
push 0
push 0x11783
mov byte [ebp - 4], 6
call fcn.0045dea0
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.00439360
mov byte [ebp - 0x240], 1
call fcn.0040cce6
mov ecx, eax
test ecx, ecx
je 0x439e8e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439e98
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x23c], eax
push 3
push 0x62f614
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 0x439cfb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439e9f
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439e9f
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 0x439e07
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439ea6
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439ea6
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x439e07
mov byte [ebp - 0x240], 0
call fcn.0040cce6
mov ecx, eax
test ecx, ecx
je 0x439ead
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439eb7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x23c], eax
push 2
push 0x627008
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 0x439dfd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439ebe
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x439ebe
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 0x439e19
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.005a8a56
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022df
call edx
jmp 0x439869
push 0x80004005
call fcn.004022df
call edx
jmp 0x43989c
push 0x80070057
call fcn.004022df
mov ecx, edx
call esi
jmp 0x439965
mov ecx, ebx
call edx
jmp 0x43998a
push 0x80070057
call fcn.004022df
call edx
jmp 0x439c18
push 0x80004005
call fcn.004022df
call edx
jmp 0x439c7d
call edx
jmp 0x439cfb
call edx
jmp 0x439e07
push 0x80004005
call fcn.004022df
call edx
jmp 0x439d84
call edx
jmp 0x439dfd