Function at 0x412f7c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov eax, 0x5360d4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
call fcn.00524684
mov dword [ebp - 0x10], 3
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.0052f058
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
mov word [ebp - 0x1c], 8
lea eax, [ebp - 8]
call fcn.0052f058
inc dword [ebp - 0x10]
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.0052f058
inc dword [ebp - 0x10]
xor ebx, ebx
mov byte [ebp - 0x78], 0x42
mov byte [ebp - 0x77], 0x44
mov byte [ebp - 0x76], 0x54
mov word [ebp - 0x75], 1
mov byte [ebp - 0x73], 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
cmp dword [ebp - 4], 0
je 0x413001
mov eax, dword [ebp - 4]
jmp 0x413006
mov eax, 0x5323db
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4132c9
push str.hMapInFl
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.DLL_CreateFileMappingA
mov edi, eax
test edi, edi
je 0x4132c3
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4132bd
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
cmp dword [ebp + 8], 0
je 0x413072
mov edx, dword [ebp + 8]
jmp 0x413077
mov edx, 0x5323e5
push edx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x4132b4
push str.PtchFile
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4132ab
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4132a2
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x78]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x6e]
mov dword [ebp - 0x5c], eax
add dword [ebp - 0x54], 0x12
mov edx, dword [ebp - 0x6a]
shl edx, 2
lea edx, [edx + edx*2]
add edx, 0xc
push edx
call fcn.0052370c
pop ecx
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x58]
mov edx, eax
mov dword [ebp - 0x64], edx
jmp 0x413145
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x64]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
add dword [ebp - 0x54], 0xc
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x64]
mov eax, dword [ecx + 4]
add eax, dword [edx + 8]
sub dword [ebp - 0x6e], eax
inc dword [ebp - 0x60]
add dword [ebp - 0x64], 0xc
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x6a]
jb 0x413115
cmp dword [ebp - 0x6e], 0
je 0x413183
mov eax, dword [ebp - 0x6a]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x58]
xor ecx, ecx
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x6a]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x58]
xor ecx, ecx
mov dword [edx + eax*4 + 8], ecx
mov eax, dword [ebp - 0x6a]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x6e]
mov dword [edx + eax*4 + 4], ecx
inc dword [ebp - 0x6a]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
cmp dword [ebp - 8], 0
je 0x41319d
mov eax, dword [ebp - 8]
jmp 0x4131a2
mov eax, 0x5323ef
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x413299
push 0
mov edx, dword [ebp - 0x5c]
push edx
push 0
push 4
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x413290
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x38]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x413268
mov edx, dword [ebp - 0x44]
xor ecx, ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x58]
lea ebx, [eax + 4]
jmp 0x41324b
mov eax, dword [ebx]
push eax
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.005242f8
add esp, 0xc
mov eax, dword [ebx]
add dword [ebp - 0x50], eax
add dword [ebp - 0x54], eax
mov edx, dword [ebx - 4]
add dword [ebp - 0x4c], edx
mov ecx, dword [ebx + 4]
push ecx
mov eax, dword [ebp - 0x4c]
push eax
mov edx, dword [ebp - 0x50]
push edx
call fcn.005242f8
add esp, 0xc
mov eax, dword [ebx + 4]
add dword [ebp - 0x4c], eax
add dword [ebp - 0x50], eax
inc dword [ebp - 0x60]
add ebx, 0xc
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x6a]
jb 0x413207
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00523544
pop ecx
mov eax, dword [ebp - 0x44]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov bl, 1
mov eax, dword [ebp - 0x38]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp bl, 1
jne 0x413290
push 0
push 0
mov edx, dword [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x30]
push ecx
call sub.KERNEL32.DLL_SetFilePointer
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
mov edx, dword [ebp - 0x30]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 0x48]
push ecx
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, dword [ebp - 0x3c]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x34]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 0x40]
push ecx
call sub.KERNEL32.DLL_UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_CloseHandle
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
mov edx, 2
push eax
lea eax, [ebp + 8]
dec dword [ebp - 0x10]
call fcn.0052f334
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0052f334
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0052f334
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4