Function at 0x411120
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ad96
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41116d
mov ecx, dword [ebp - 0x274]
cmp dword [ecx + 0xc], 0
jne 0x411174
xor eax, eax
jmp 0x411580
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0xffffffff
jne 0x4111a6
xor eax, eax
jmp 0x411580
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x280], 1
mov dword [ebp - 0x26c], 0
push 0
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28c], eax
mov ecx, 0xa
mov esi, str.IIME_CODETABLE_READ
lea edi, [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
push 0x1e0
push 0
lea ecx, [ebp - 0x1f0]
push ecx
call fcn.0041eab0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00419780
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x28c]
push edx
push 0
push 2
push 0
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
jne 0x41125d
mov dword [ebp - 0x280], 0
jmp 0x41151a
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
jne 0x411290
mov dword [ebp - 0x280], 0
jmp 0x41151a
cmp dword [ebp + 0xc], 0
jne 0x41136f
mov dword [ebp - 0x288], 0x564
mov edi, dword [ebp - 0x274]
add edi, 0x14
mov ecx, 0x159
mov esi, dword [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x274]
mov eax, dword [edx + 0xd0]
sub eax, dword [ebp - 0x288]
mov dword [ebp - 0x284], eax
push 4
push 0x3000
mov ecx, dword [ebp - 0x284]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x274]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x274]
cmp dword [eax + 0x10], 0
jne 0x41130c
mov dword [ebp - 0x280], 0
jmp 0x41151a
mov ecx, dword [ebp - 0x284]
push ecx
mov edx, dword [ebp - 0x270]
add edx, dword [ebp - 0x288]
push edx
mov eax, dword [ebp - 0x274]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.0041e530
add esp, 0xc
mov edx, dword [ebp - 0x274]
mov dword [edx + 0x90c], 0
mov ecx, dword [ebp - 0x274]
call fcn.00413010
mov ecx, dword [ebp - 0x274]
mov dword [ecx], eax
mov edx, dword [ebp - 0x274]
cmp dword [edx], 0
jne 0x41136f
mov dword [ebp - 0x280], 0
jmp 0x41151a
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax + 0xbc]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
cmp edx, dword [ebp - 0x28c]
jae 0x41151a
mov eax, dword [ebp - 0x270]
add eax, dword [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00413990
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402880
mov ecx, dword [ebp - 0x26c]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x26c], edx
lea ecx, [ebp - 0x268]
call fcn.00417f10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x270]
add eax, dword [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x250]
call fcn.004028c0
lea ecx, [ebp - 0x250]
call fcn.00402880
mov ecx, dword [ebp - 0x26c]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x238], 0xfd
mov dword [ebp - 0x234], 0
cmp dword [ebp + 0xc], 0
jne 0x41146f
mov eax, dword [ebp - 0x270]
add eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x26c]
add edx, 4
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x270]
add eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x26c]
add edx, 4
mov dword [ebp - 0x26c], edx
push 1
sub esp, 0x38
mov ecx, esp
mov dword [ebp - 0x294], esp
lea eax, [ebp - 0x268]
push eax
call fcn.00417fa0
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x29c], esp
lea edx, [ebp - 0x230]
push edx
call fcn.00413a10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x274]
call fcn.004115a0
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0
jne 0x4114f4
mov dword [ebp - 0x280], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00418150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00413970
jmp 0x41151a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00418150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00413970
jmp 0x411381
cmp dword [ebp - 0x270], 0
je 0x41153a
mov eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x270], 0
cmp dword [ebp - 0x278], 0
je 0x41155a
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x278], 0
cmp dword [ebp - 0x27c], 0xffffffff
je 0x41157a
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x27c], 0
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d17f
mov esp, ebp
pop ebp
ret 8