Function at 0x4827ec
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0046c0b0
lea eax, [ebp - 0x5c]
mov edx, dword [sym.D3DWindower.exe___xp_22Maddisasm_madDisAsm__5]
call fcn.0046c428
xor eax, eax
push ebp
push 0x482a36
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call sym.D3DWindower.exe__Maddisasm_ParseFunction_qqrpv
mov eax, dword [ebp - 0x3c]
call fcn.0046d1ac
mov esi, eax
test esi, esi
jl 0x48287d
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x3c]
cmp edi, dword [edx + eax*4 + 0xc]
jne 0x482879
cmp byte [ebp + 8], 0
je 0x48286d
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [ebp - 8], eax
jmp 0x48287d
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 8], eax
jmp 0x48287d
inc ebx
dec esi
jne 0x48284b
cmp dword [ebp - 8], 0
jne 0x482a07
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 4]
call sym.D3DWindower.exe__Madstrings_DecryptStr_qqr17System_AnsiString
mov eax, dword [ebp - 0x18c]
call fcn.0046c0c0
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 0xc], eax
push 0x104
lea eax, [ebp - 0x161]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x161]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x482a07
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4829fe
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4829f5
mov eax, dword [ebp - 0xc]
call sym.D3DWindower.exe__Madtools_GetImageNtHeaders_qqrui
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
call fcn.0046d1ac
mov esi, eax
test esi, esi
jl 0x4829ec
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + eax*4 + 4]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call sym.D3DWindower.exe__Madtools_VirtualToRaw_qqrp17_IMAGE_NT_HEADERSui
add eax, dword [ebp - 0x18]
lea edx, [ebp - 0x188]
call sym.D3DWindower.exe__Maddisasm_ParseCode_qqrpv
cmp edi, dword [ebp - 0x180]
je 0x4829b8
mov edx, edi
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call sym.D3DWindower.exe__Madtools_VirtualToRaw_qqrp17_IMAGE_NT_HEADERSui
mov edx, dword [ebp - 0x180]
sub edx, dword [ebp - 0x18]
cmp eax, edx
je 0x4829b8
cmp byte [ebp - 0x188], 0
je 0x4829e4
cmp byte [ebp - 0x183], 0
je 0x4829e4
lea edx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x180]
call sym.D3DWindower.exe__Maddisasm_ParseCode_qqrpv
cmp edi, dword [ebp - 0x1a8]
jne 0x4829e4
cmp byte [ebp + 8], 0
je 0x4829d1
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [ebp - 8], eax
jmp 0x4829ec
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 8], eax
jmp 0x4829ec
inc ebx
dec esi
jne 0x482944
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482a3d
lea eax, [ebp - 0x18c]
call fcn.0046bc80
lea eax, [ebp - 0x5c]
mov edx, dword [sym.D3DWindower.exe___xp_22Maddisasm_madDisAsm__5]
call fcn.0046c4f4
lea eax, [ebp - 4]
call fcn.0046bc80
ret