Function at 0x40a800
Capabilities:
Get file version info
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8a992c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a4
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x979304]
test eax, eax
je 0x40a843
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov al, byte [0x9ee009]
test al, al
je 0x40a85c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2b0]
push 0x9f0610
push dword [0x8cf9c0]
push dword [0x8cf9bc]
push dword [0x8cf9b8]
push 0x9f0608
push 0x9f05f8
push eax
call fcn.0089882d
add esp, 0x1c
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x979304], eax
test eax, eax
je 0x40aa19
lea edx, [ebp - 0x2b0]
lea eax, [ebp - 0x184]
push eax
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
xor al, al
mov edx, dword [ebp - 0x14]
test edx, edx
mov byte [ebp - 0x18], al
je 0x40a9ee
mov eax, dword [ebp - 0x184]
test eax, eax
jne 0x40a9ee
lea ecx, [ebp - 0x180]
push 1
call fcn.0040ae94
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
inc eax
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x14], eax
push 1
push eax
call fcn.0040af00
lea ecx, [ebp - 0x180]
call fcn.00845940
lea edx, [ebp - 0x2b0]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40a9c8
mov dword [ebp - 0x16c], 0
lea ecx, [ebp - 0x180]
call fcn.00845940
lea ecx, [ebp - 0x168]
lea edx, [ebp - 0x16c]
push edx
push ecx
push 0x9f0620
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a9c8
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x40a9c8
mov esi, dword [ebp - 0x168]
lea edi, [ebp - 0x164]
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x164]
mov ecx, dword [ebp - 0x16c]
dec ecx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x164]
xor eax, eax
mov cl, byte [ebp - 0x164]
test cl, cl
je 0x40ab2a
cmp cl, 0x2e
je 0x40a9b3
cmp cl, 0x2c
jne 0x40a9b4
inc eax
cmp eax, 3
jne 0x40a9bc
mov byte [edx], 0
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x40a9a9
jmp 0x40ab2a
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x180], 0x9f05c8
mov al, byte [ebp - 0x170]
test al, al
je 0x40a9ee
lea ecx, [ebp - 0x180]
call fcn.0040acc4
mov al, byte [ebp - 0x18]
test al, al
jne 0x40aa32
mov dword [0x979304], 0
push dword [0x8cf9c0]
push dword [0x8cf9bc]
push dword [0x8cf9b8]
call fcn.0040a6d8
add esp, 0xc
xor eax, eax
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x9f0648
push dword [0x979304]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x97931c], eax
push 0x9f0654
push dword [0x979304]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x979318], eax
push 0x9f0660
push dword [0x979304]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x979314], eax
push 0x9f0670
push dword [0x979304]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x979310], eax
push 0x9f067c
push dword [0x979304]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x97930c], eax
push 0x9f0688
push dword [0x979304]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x979308], eax
mov eax, dword [0x97931c]
test eax, eax
je 0x40aa19
mov eax, dword [0x979318]
test eax, eax
je 0x40aa19
mov eax, dword [0x979314]
test eax, eax
je 0x40aa19
mov eax, dword [0x979310]
test eax, eax
je 0x40aa19
mov eax, dword [0x97930c]
test eax, eax
je 0x40aa19
mov eax, dword [0x979308]
test eax, eax
je 0x40aa19
mov ecx, 0x9eb920
call fcn.0040ac0c
mov eax, 1
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x64]
push dword [0x8cf9c0]
push dword [0x8cf9bc]
push dword [0x8cf9b8]
push 0x9f0614
push eax
call fcn.0089882d
add esp, 0x14
lea edi, [ebp - 0x164]
lea esi, [ebp - 0x64]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40ab76
or dl, dl
je 0x40ab72
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40ab76
add edi, 2
add esi, 2
or dl, dl
jne 0x40ab56
xor eax, eax
jmp 0x40ab7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a9c8
mov al, 1
mov byte [ebp - 0x18], al
jmp 0x40a9c8