Function at 0x4112ab
Capabilities:
Check if file exists

Disassembly:
push 0xe54
mov eax, 0x4a28cf
call fcn.00481da3
or dword [ebp - 0xe5c], 0xffffffff
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp - 0xc42]
push ebx
push eax
mov word [ebp - 0xc44], bx
call fcn.0047e7d0
add esp, 0xc
push esi
lea eax, [ebp - 0xa3a]
push ebx
push eax
mov word [ebp - 0xa3c], bx
call fcn.0047e7d0
add esp, 0xc
push esi
lea eax, [ebp - 0x62a]
push ebx
push eax
mov word [ebp - 0x62c], bx
call fcn.0047e7d0
add esp, 0xc
push esi
lea eax, [ebp - 0x21a]
push ebx
push eax
mov word [ebp - 0x21c], bx
call fcn.0047e7d0
add esp, 0xc
push esi
lea eax, [ebp - 0x422]
push ebx
push eax
mov word [ebp - 0x424], bx
call fcn.0047e7d0
add esp, 0xc
push esi
lea eax, [ebp - 0x832]
push ebx
push eax
mov word [ebp - 0x834], bx
call fcn.0047e7d0
add esp, 0xc
call fcn.00428e38
push dword [0x4efd98]
lea eax, [ebp - 0xc44]
push eax
call fcn.0040464f
lea eax, [ebp - 0xc44]
push str.ksgmerge.dll
push eax
call fcn.0040468c
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0xc44]
push eax
call esi
test eax, eax
jne 0x4113ab
mov dword [ebp - 0xe5c], 0xfffffffe
mov dword [0x4ee060], ebx
jmp 0x411735
lea eax, [ebp - 0xc44]
push eax
mov dword [0x4ee060], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x4ee058], eax
je 0x411735
mov eax, dword [0x4ee05c]
cmp eax, ebx
je 0x4113dd
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [0x4ee06c]
cmp eax, ebx
je 0x4113f3
push eax
call fcn.0045d845
pop ecx
mov dword [0x4ee06c], ebx
mov eax, dword [0x4ee058]
cmp eax, ebx
je 0x41141a
xor ecx, ecx
mov edi, 0x4ee05c
cmp ecx, edi
je 0x41141a
push 0x4ade14
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41141a
push edi
call eax
cmp dword [0x4ee05c], ebx
je 0x411735
push 0x10
call fcn.0045d815
cmp eax, ebx
pop ecx
je 0x41144f
mov dword [eax], vtable.CKSignMergeCallback.0
mov dword [eax + 4], 0x4e8910
mov dword [eax + 8], 0x4efdb8
mov dword [eax + 0xc], 0x4e892c
jmp 0x411451
xor eax, eax
cmp eax, ebx
mov dword [0x4ee06c], eax
je 0x411735
push dword [0x4efd98]
lea eax, [ebp - 0xa3c]
push eax
call fcn.0040464f
mov eax, dword [0x4ef1d4]
cmp eax, ebx
pop ecx
pop ecx
jne 0x411482
push 0x4ed5e8
jmp 0x41148c
cmp eax, 1
jne 0x41149a
push 0x4ef3e4
lea eax, [ebp - 0x21c]
push eax
call fcn.0040464f
pop ecx
pop ecx
lea eax, [ebp - 0xe58]
push eax
call fcn.0040f01c
push dword [eax]
lea eax, [ebp - 0x834]
push eax
call fcn.0040464f
pop ecx
pop ecx
mov ecx, dword [ebp - 0xe58]
add ecx, 0xfffffff0
call fcn.00401325
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0xe58]
call fcn.00401640
lea eax, [ebp - 0xe58]
push eax
lea eax, [ebp - 0xe60]
push eax
mov dword [ebp - 4], ebx
call fcn.00428434
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call fcn.0040468c
mov ecx, dword [ebp - 0xe60]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00401325
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xe58]
add ecx, 0xfffffff0
call fcn.00401325
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x834]
push eax
call fcn.0040464f
lea eax, [ebp - 0x21c]
push str.signs.ini
push eax
call fcn.0040468c
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.0040464f
lea eax, [ebp - 0x62c]
push str.ksg_
push eax
call fcn.0040468c
lea eax, [ebp - 0x62c]
push eax
call fcn.004282c6
add esp, 0x24
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0040464f
lea eax, [ebp - 0x424]
push str.FileList.ini
push eax
call fcn.0040468c
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
jne 0x4115b9
lea eax, [ebp - 0x424]
push eax
call esi
test eax, eax
jne 0x4115b9
push ebx
push ebx
jmp 0x411629
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
jne 0x4115dc
lea eax, [ebp - 0x424]
push eax
call esi
test eax, eax
je 0x4115dc
lea edx, [ebp - 0x424]
push edx
jmp 0x4115b6
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
je 0x4115f9
lea eax, [ebp - 0x424]
push eax
call esi
test eax, eax
jne 0x4115f9
push ebx
jmp 0x411622
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
je 0x411735
lea eax, [ebp - 0x424]
push eax
call esi
test eax, eax
je 0x411735
lea edx, [ebp - 0x424]
push edx
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [0x4ee05c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x62c]
push edx
lea edx, [ebp - 0xa3c]
push edx
push dword [0x4ee06c]
push eax
call dword [ecx + 8]
test eax, eax
jne 0x411735
mov eax, dword [0x4ee05c]
mov ecx, dword [eax]
push eax
mov dword [0x4ee064], 1
call dword [ecx + 0x10]
cmp eax, ebx
jne 0x411735
cmp dword [0x4e891c], ebx
je 0x411779
mov eax, dword [0x4e8914]
cmp eax, ebx
je 0x41172f
jmp 0x41168f
mov eax, dword [ebp - 0xe58]
mov ecx, dword [eax]
lea esi, [eax + 8]
lea eax, [ebp - 0xe54]
mov dword [ebp - 0xe58], ecx
push eax
mov ecx, 0x84
lea edi, [ebp - 0xe54]
push 0x4efe78
rep movsd dword es:[edi], dword [esi]
call fcn.0040783e
mov esi, eax
cmp esi, ebx
je 0x411746
push 0x9a0
call fcn.0045d815
pop ecx
mov dword [ebp - 0xe60], eax
xor edi, edi
inc edi
cmp eax, ebx
mov dword [ebp - 4], edi
je 0x4116e8
push esi
push eax
call fcn.00406d33
mov esi, eax
jmp 0x4116ea
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00407882
neg eax
sbb eax, eax
and eax, 3
mov dword [esi + 0x310], eax
mov eax, dword [0x4efdd8]
mov dword [esi], eax
push edi
mov eax, esi
mov dword [0x4efdd8], esi
call fcn.00412004
cmp dword [ebp - 0xe58], ebx
pop ecx
jne 0x411689
mov eax, dword [0x4efe4c]
add dword [0x4ef868], eax
mov dword [ebp - 0xe5c], ebx
call fcn.00428e69
mov eax, dword [ebp - 0xe5c]
call fcn.00481e26
ret
mov esi, 0x4e8910
call fcn.004130d1
mov eax, dword [0x4ee05c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push dword [0x4ee058]
mov dword [0x4ee05c], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xe5c], 0xfffffffd
jmp 0x411735
call fcn.00411a85
jmp 0x41172f