Function at 0x404a15
Capabilities:
Get file version info

Disassembly:
mov eax, 0x40ca07
call fcn.00407c28
sub esp, 0x1c8
mov ecx, dword [0x411930]
or dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [0x411a2c], eax
mov dword [0x411a30], eax
mov dword [ebp - 0x3c], eax
and byte [ecx], al
cmp dword [0x411974], eax
mov dword [ebp - 0x44], eax
je 0x404a70
mov ecx, dword [0x41195c]
mov dword [ebp - 0x1c], eax
cmp ecx, eax
je 0x404a67
mov eax, dword [0x411954]
xor edx, edx
imul eax, eax, 0x64
div ecx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.00401ce7
pop ecx
push ebx
push esi
push edi
inc dword [0x411950]
mov eax, dword [0x411950]
cmp eax, dword [0x411974]
jae 0x405485
mov esi, dword [0x41194c]
xor ebx, ebx
push esi
mov dword [ebp - 0x24], ebx
call fcn.0040410c
mov dword [0x41194c], eax
mov eax, dword [esi + 0xa]
add eax, 0x3ff
mov word [esi + 0x14], bx
shr eax, 0xa
add dword [0x411954], eax
mov ax, word [esi + 0x18]
cmp ax, bx
pop ecx
jge 0x404aea
cmp ax, 0xfffe
jne 0x404acb
cmp byte [esi + 5], 1
je 0x404ae2
cmp ax, 0xffff
jne 0x404ad7
cmp byte [esi + 6], 3
je 0x404ae2
cmp byte [esi + 7], 1
jne 0x404a73
jmp 0x404b8b
movzx eax, word [esi + 0x16]
add eax, esi
jmp 0x404afb
movsx ecx, word [esi + 0x18]
movzx eax, word [esi + 0x16]
shl ecx, 4
mov edx, esi
add edx, ecx
add eax, edx
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x404b8b
mov edi, dword [eax + 8]
jmp 0x404b1b
mov dword [0x411960], ebx
call fcn.00404567
cmp eax, 0xffffffff
je 0x404b2e
mov eax, dword [0x411964]
mov ecx, dword [0x411968]
add eax, ecx
cmp edi, eax
jae 0x404b0b
jmp 0x404b58
cmp dword [0x411940], ebx
jne 0x404b4e
push dword [0x4119e4]
mov dword [0x41197c], 0x14
call fcn.00404115
pop ecx
jmp 0x404b58
mov dword [0x41197c], 0x11
cmp dword [0x41197c], ebx
jne 0x405485
sub edi, dword [0x411968]
xor ebx, ebx
cmp dword [0x411948], ebx
jne 0x404b7a
add edi, dword [0x41196c]
add edi, 4
push edi
push dword [0x40f1ac]
call fcn.00401114
pop ecx
pop ecx
push esi
call fcn.00404787
test byte [esi + 8], 4
pop ecx
je 0x404cc3
push dword [0x41192c]
push dword [0x411938]
call fcn.00407cd0
push dword [0x411938]
call fcn.00401e24
push 1
push esi
call fcn.004040d6
push eax
push dword [0x411938]
call fcn.00407ce0
push dword [0x411938]
call fcn.00401e24
push ebx
push esi
call fcn.004040d6
push eax
push dword [0x411938]
call fcn.00407ce0
add esp, 0x30
test byte [esi + 8], 0x10
je 0x404cd6
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
inc ebx
push dword [0x411934]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 0x30], eax
je 0x404cd6
push eax
call fcn.00407f71
mov edi, eax
pop ecx
test edi, edi
je 0x404cd6
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push dword [0x411934]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404cb6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x40f22c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404cb6
mov eax, dword [ebp - 0x2c]
mov edx, dword [esi + 0x1e]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp ecx, edx
ja 0x404c69
jne 0x404cb6
cmp eax, dword [esi + 0x22]
jbe 0x404cb6
lea eax, [ebp - 0x20]
push eax
push 0x800
call fcn.00401e9c
pop ecx
test eax, eax
pop ecx
je 0x404cb6
push dword [0x411934]
push 0x1f
push 6
call fcn.004037b0
pop ecx
pop ecx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x24
push dword [ebp - 0x20]
call fcn.004038d1
add esp, 0x14
cmp eax, 6
je 0x404cac
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
call fcn.00401ecf
pop ecx
push edi
call fcn.004080d4
test ebx, ebx
pop ecx
jne 0x404cd6
jmp 0x404d2b
push dword [0x411934]
push dword [0x411938]
call fcn.00407cd0
pop ecx
pop ecx
mov ecx, dword [0x41195c]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
mov dword [ebp - 0x20], eax
je 0x404cf5
mov eax, dword [0x411954]
xor edx, edx
imul eax, eax, 0x64
div ecx
mov dword [ebp - 0x20], eax
push dword [0x411934]
call fcn.00401d08
cmp byte [esi + 7], 1
pop ecx
jne 0x404d37
push esi
call fcn.004048f1
movzx eax, word [esi + 0x14]
push dword [0x411934]
push eax
push dword [ebp + 8]
call fcn.0040583b
push dword [ebp - 0x20]
call fcn.00401ce7
add esp, 0x14
mov dword [ebp - 0x44], 1
jmp 0x405496
movzx edi, word [esi + 0x1a]
mov bx, word [esi + 0x1c]
or dword [ebp - 0x18], 0xffffffff
add edi, esi
mov dword [ebp - 0x2c], ebx
test byte [esi + 8], 2
mov dword [ebp - 0x30], edi
je 0x404d56
test bx, bx
je 0x404d97
push 0
push dword [0x411938]
call section..text
pop ecx
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0x18], eax
jne 0x404d82
push dword [0x411938]
mov dword [0x41197c], 0x12
jmp 0x405428
push dword [ebp - 0x18]
call fcn.0040113a
push dword [ebp - 0x18]
push edi
push ebx
call fcn.004054ec
add esp, 0x10
push dword [0x411934]
push dword [0x411930]
call fcn.00407cd0
push str..__A
push dword [0x411930]
call fcn.00401de5
add esp, 0x10
test byte [esi + 8], 2
je 0x404dcd
push dword [0x411930]
call fcn.0040205a
pop ecx
xor ebx, ebx
push ebx
push dword [0x411930]
call section..text
pop ecx
or edi, 0xffffffff
pop ecx
jmp 0x404e0e
push eax
call fcn.00401225
push dword [0x411930]
call fcn.00407c50
mov ecx, dword [0x411930]
push ebx
lea eax, [eax + ecx - 1]
inc byte [eax]
push dword [0x411930]
call section..text
add esp, 0x10
cmp eax, edi
jne 0x404de2
push dword [0x411930]
call fcn.0040104d
cmp eax, edi
pop ecx
mov dword [ebp - 0x14], eax
jne 0x404e3a
mov dword [0x41197c], 0x13
push dword [0x411930]
jmp 0x405428
test byte [esi + 8], 2
jne 0x40514b
push 0x411924
push 0x411a2c
call fcn.004056a6
pop ecx
cmp eax, ebx
pop ecx
jne 0x404e6e
push 0x411920
push 0x411a30
call fcn.004056a6
pop ecx
cmp eax, ebx
pop ecx
je 0x404e78
mov dword [0x41197c], eax
jmp 0x405461
mov eax, dword [0x411a2c]
mov ecx, 0x2710
mov dword [0x411a34], eax
mov eax, dword [0x411a30]
mov dword [0x411a38], eax
mov eax, dword [esi + 0xa]
add eax, ecx
xor edx, edx
div ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x3c]
push eax
push 0x10000
call fcn.00401e6f
pop ecx
test eax, eax
pop ecx
jne 0x404ec3
mov dword [0x41197c], 0xe
jmp 0x405461
mov eax, dword [ebp - 0x1c]
cmp dword [0x411924], ebx
mov dword [ebp - 0x28], eax
jbe 0x405181
lea eax, [ebp - 0xd]
xor ebx, ebx
push eax
mov dword [ebp - 0x40], ebx
call fcn.004057fb
mov al, byte [ebp - 0xd]
pop ecx
test al, al
jns 0x404f42
mov cl, al
shr cl, 5
and cl, 3
movzx cx, cl
test cx, cx
jne 0x404f05
and al, 0x1f
movzx cx, al
inc ecx
jmp 0x404f0f
and eax, 0x1f
inc eax
inc eax
mov ebx, eax
mov dword [ebp - 0x40], ebx
mov eax, dword [0x411a38]
test eax, eax
je 0x405121
movzx edi, cx
push edi
push eax
push dword [ebp - 0x14]
call fcn.004010cd
add esp, 0xc
test eax, eax
jne 0x40510d
add dword [0x411a38], edi
sub dword [0x411920], edi
jmp 0x404f61
je 0x404f4a
movzx ebx, al
inc ebx
jmp 0x404f5e
lea eax, [ebp - 0x38]
push eax
call fcn.00405819
movzx ebx, word [ebp - 0x38]
pop ecx
add ebx, 0x81
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x4050c4
lea eax, [ebp - 0xd]
push eax
call fcn.004057fb
mov al, byte [ebp - 0xd]
pop ecx
test al, al
jns 0x40502f
test al, 0x40
je 0x40501f
and eax, 0x3f
shl eax, 0x10
mov edi, eax
lea eax, [ebp - 0xd]
push eax
call fcn.004057fb
xor eax, eax
mov ah, byte [ebp - 0xd]
or edi, eax
lea eax, [ebp - 0xd]
push eax
call fcn.004057fb
movzx eax, byte [ebp - 0xd]
or edi, eax
pop ecx
cmp edi, 0x100000
pop ecx
jne 0x404ffd
lea eax, [ebp - 0xd]
push eax
call fcn.004057fb
movzx ebx, byte [ebp - 0xd]
lea eax, [ebp - 0xd]
push eax
shl ebx, 0x18
call fcn.004057fb
movzx eax, byte [ebp - 0xd]
shl eax, 0x10
or ebx, eax
lea eax, [ebp - 0xd]
push eax
call fcn.004057fb
xor eax, eax
mov ah, byte [ebp - 0xd]
or ebx, eax
lea eax, [ebp - 0xd]
push eax
call fcn.004057fb
movzx edi, byte [ebp - 0xd]
add esp, 0x10
or edi, ebx
jmp 0x40500b
test edi, 0x200000
je 0x40500b
or edi, 0xffe00000
test edi, edi
jge 0x405017
sub edi, 0x4020
jmp 0x405066
add edi, 0x4020
jmp 0x405066
mov cl, al
and ecx, 0x3f
test al, 0x20
mov edi, ecx
je 0x405066
or edi, 0xffffffe0
jmp 0x405066
and al, 0x7f
xor ecx, ecx
mov ch, al
lea eax, [ebp - 0xd]
push eax
mov dword [ebp - 0x38], ecx
call fcn.004057fb
movzx ax, byte [ebp - 0xd]
or dword [ebp - 0x38], eax
pop ecx
test byte [ebp - 0x37], 0x40
movzx edi, word [ebp - 0x38]
je 0x40505a
or edi, 0xffffc000
test edi, edi
jge 0x405063
sub edi, 0x20
jmp 0x405066
add edi, 0x20
mov eax, dword [ebp - 0x24]
lea ebx, [edi + eax]
push ebx
push dword [ebp - 0x18]
call fcn.00401114
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x18]
call fcn.00401077
add esp, 0x14
test eax, eax
jne 0x405139
cmp word [ebp - 0x2c], ax
je 0x4050a9
push dword [ebp - 0x40]
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00405637
add esp, 0x14
mov ebx, dword [ebp - 0x40]
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x14]
call fcn.004010cd
add esp, 0xc
test eax, eax
jne 0x40510d
add edi, ebx
add dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], edi
je 0x4050fe
push dword [ebp - 0x14]
call fcn.00401103
pop ecx
xor edx, edx
mov ecx, 0x2710
add eax, ecx
div ecx
mov ecx, dword [ebp - 0x20]
xor edx, edx
sub ecx, edi
imul eax, ecx
div dword [ebp - 0x50]
add eax, edi
cmp eax, dword [ebp - 0x28]
je 0x4050fe
push eax
mov dword [ebp - 0x28], eax
call fcn.00401ce7
pop ecx
cmp dword [0x411924], 0
ja 0x404ed5
jmp 0x405181
cmp eax, 3
jne 0x405121
mov dword [0x41197c], 0x16
jmp 0x405461
push dword [0x411930]
mov dword [0x41197c], 0x15
call fcn.00404115
pop ecx
jmp 0x405181
push dword [0x411934]
mov dword [0x41197c], 0x14
jmp 0x405131
lea ecx, [ebp - 0x1d4]
call fcn.004033e9
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 4], ebx
push dword [eax + 0xc]
push dword [0x40f1ac]
push dword [ebp - 0x14]
call fcn.0040348f
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 4], edi
call fcn.004033f5
cmp dword [0x41197c], 0
jne 0x405461
mov ax, word [esi + 8]
test al, 0x20
je 0x4051b2
test al, 0x10
lea eax, [esi + 0x2e]
jne 0x4051a0
lea eax, [esi + 0x1e]
lea ecx, [eax + 0x10]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x14]
call fcn.00401225
or dword [ebp - 0x14], 0xffffffff
mov edi, dword [ebp - 0x30]
xor eax, eax
pop ecx
cmp word [ebp - 0x2c], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], eax
jbe 0x405374
cmp word [edi + 8], 0
je 0x405307
cmp dword [edi + 4], 0xffffffff
je 0x405307
cmp dword [edi], 0
je 0x405307
cmp dword [ebp - 0x34], 0
jne 0x405253
mov ecx, dword [esi]
lea eax, [ebp - 0x34]
push eax
movzx eax, word [esi + 0x16]
sub ecx, eax
push ecx
call fcn.00401e6f
pop ecx
test eax, eax
pop ecx
je 0x40536a
movzx eax, word [esi + 0x16]
mov ecx, dword [esi]
sub ecx, eax
push ecx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004084a0
push 2
push dword [0x411930]
call section..text
add esp, 0x14
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x405323
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call fcn.004054ec
add esp, 0xc
cmp word [ebp - 0x1c], 0
mov ebx, dword [ebp - 0x34]
jbe 0x405272
movzx eax, word [ebp - 0x1c]
mov dword [ebp - 0x28], eax
push ebx
call fcn.004054df
dec dword [ebp - 0x28]
pop ecx
mov ebx, eax
jne 0x405264
cmp dword [ebx + 4], 0xffffffff
je 0x405307
push dword [ebp - 0x18]
call fcn.0040113a
mov edx, dword [edi]
pop ecx
mov ecx, dword [edi + 4]
add edx, ecx
cmp edx, eax
ja 0x405307
push ecx
push dword [ebp - 0x18]
call fcn.00401114
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x405307
push dword [ebp - 0x14]
call fcn.0040113a
pop ecx
mov ecx, dword [ebx + 4]
cmp ecx, eax
ja 0x405307
push ecx
push dword [ebp - 0x14]
call fcn.00401114
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x405307
lea eax, [ebp - 0x48]
push eax
push dword [edi]
call fcn.00401e6f
pop ecx
test eax, eax
pop ecx
je 0x40536a
push dword [edi]
push dword [ebp - 0x48]
push dword [ebp - 0x18]
call fcn.00401077
add esp, 0xc
test eax, eax
jne 0x40532f
push dword [edi]
push dword [ebp - 0x48]
push dword [ebp - 0x14]
call fcn.004010cd
add esp, 0xc
test eax, eax
jne 0x405341
lea eax, [ebp - 0x48]
push eax
call fcn.00401ecf
pop ecx
inc dword [ebp - 0x1c]
push edi
call fcn.004054df
mov edi, eax
mov ax, word [ebp - 0x1c]
cmp ax, word [ebp - 0x2c]
pop ecx
jb 0x4051d4
jmp 0x405374
mov dword [0x41197c], 0x12
jmp 0x40535c
push dword [0x411934]
mov dword [0x41197c], 0x14
jmp 0x405362
cmp eax, 3
jne 0x405352
mov dword [0x41197c], 0x16
jmp 0x405374
mov dword [0x41197c], 0x15
push dword [0x411930]
call fcn.00404115
pop ecx
jmp 0x405374
mov dword [0x41197c], 0xe
lea eax, [ebp - 0x34]
push eax
call fcn.00401ecf
cmp dword [0x41197c], 0
pop ecx
jne 0x405461
or ebx, 0xffffffff
cmp dword [ebp - 0x18], ebx
je 0x40539f
push dword [ebp - 0x18]
call fcn.00401225
pop ecx
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x14], ebx
je 0x4053d4
mov ax, word [esi + 8]
test al, 0x20
je 0x4053c8
test al, 0x10
lea eax, [esi + 0x2e]
jne 0x4053b6
lea eax, [esi + 0x1e]
lea ecx, [eax + 0x10]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x14]
call fcn.00401225
pop ecx
mov dword [ebp - 0x14], ebx
push 0
push dword [0x411930]
call section..text
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x4053f8
mov dword [0x41197c], 0x12
jmp 0x404e2f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push esi
call fcn.00406157
push edi
call fcn.00401225
mov eax, dword [ebp - 0x4c]
add esp, 0x14
cmp eax, dword [esi + 0xe]
je 0x405430
push dword [0x411934]
mov dword [0x41197c], 0x17
call fcn.00404115
pop ecx
jmp 0x405461
push dword [0x411930]
push esi
call fcn.00404942
movzx eax, word [esi + 0x14]
push dword [0x411934]
push eax
push dword [ebp + 8]
call fcn.0040583b
push dword [ebp - 0x20]
call fcn.00401ce7
add esp, 0x18
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x18], 0xffffffff
je 0x405470
push dword [ebp - 0x18]
call fcn.00401225
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x40547f
push dword [ebp - 0x14]
call fcn.00401225
pop ecx
cmp dword [ebp - 0x44], 0
jne 0x405496
mov eax, dword [0x411930]
cmp byte [eax], 0
je 0x405496
push eax
call fcn.004089a8
pop ecx
xor esi, esi
cmp dword [ebp - 0x3c], esi
je 0x4054a7
lea eax, [ebp - 0x3c]
push eax
call fcn.00401ecf
pop ecx
cmp dword [0x411a30], esi
je 0x4054ba
push 0x411a30
call fcn.00401ecf
pop ecx
cmp dword [0x411a2c], esi
pop edi
pop esi
pop ebx
je 0x4054d0
push 0x411a2c
call fcn.00401ecf
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x44]
mov dword fs:[0], ecx
leave
ret