Function at 0x4600b0
Capabilities:
Enumerate pe sections
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdcaf
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x190
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x138], ebx
call fcn.004a4e29
mov esi, eax
add esp, 4
mov dword [ebp - 0x13c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x46018b
push 0x190
push 0
push esi
call fcn.004a8410
add esp, 0xc
mov dword [esi], vtable.ExeImage.0
lea ecx, [esi + 8]
call fcn.00438aa0
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 1
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call fcn.004941f0
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
call fcn.00494290
lea ecx, [esi + 0x16c]
mov byte [ebp - 4], 3
call fcn.00494310
mov dword [esi + 0x18c], 0
jmp 0x46018d
xor esi, esi
push 0x118
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x12c]
call fcn.0040e0b0
push edi
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 4
call fcn.00411120
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x12c]
lea eax, [esi + 8]
push ecx
push eax
call fcn.00414e60
add esp, 0x10
test al, al
jne 0x4601f1
test esi, esi
je 0x4603a8
jmp 0x4603a0
push 0
lea ecx, [esi + 8]
call fcn.00438c40
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4603a0
push 0
push 0
push 0
push 2
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x46023f
mov eax, dword [ebx]
mov ecx, ebx
push str.Failed_to_create_file_mapping
call dword [eax + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push str.filename
call dword [eax + 0x2c]
jmp 0x4603a0
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x13c], edi
mov dword [esi + 0x18], edi
test edi, edi
jne 0x460264
push str.Failed_to_map_view_of_file
jmp 0x46029b
mov eax, 0x5a4d
cmp word [edi], ax
je 0x460275
push str.Failed_to_find_DOS_signature
jmp 0x46029b
push edi
lea ecx, [esi + 0x2c]
call fcn.00494260
mov eax, dword [edi + 0x3c]
add eax, edi
push 4
push eax
mov dword [ebp - 0x130], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4602b9
push str.Failed_to_find_NT_header
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
push dword [ebp - 0x134]
mov eax, dword [ebx]
mov ecx, ebx
push str.filename
call dword [eax + 0x2c]
jmp 0x4603a0
mov edi, dword [ebp - 0x130]
lea ecx, [esi + 0x70]
push edi
call fcn.004942f0
movzx eax, word [edi + 0x14]
lea ecx, [edi + 0x18]
add ecx, eax
movzx eax, word [edi + 6]
push eax
push ecx
lea ecx, [esi + 0x16c]
call fcn.00494430
mov eax, dword [ebp - 0x13c]
lea ecx, [esi + 0x16c]
mov dword [esi + 0x1c], eax
mov eax, edi
mov dword [esi + 0x20], eax
call fcn.00494420
dec eax
lea ecx, [esi + 0x16c]
push eax
call fcn.004943f0
mov ecx, dword [esi + 0x18]
mov edx, dword [eax + 0x14]
add ecx, edx
add ecx, dword [eax + 0x10]
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 4]
sub ecx, edx
mov edx, dword [esi + 0x20]
sub ecx, dword [eax + 0x10]
mov dword [esi + 0x28], ecx
mov edi, dword [edx + 0x88]
test edi, edi
jne 0x460335
push str.rva_is_NULL
jmp 0x46038d
movzx ecx, word [edx + 0x14]
movzx eax, word [edx + 6]
add ecx, 0x18
add ecx, edx
mov dword [ebp - 0x130], 0
test eax, eax
je 0x460388
mov eax, dword [ecx + 8]
test eax, eax
jne 0x46035a
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp edi, edx
jb 0x460367
add eax, edx
cmp edi, eax
jb 0x4603d3
mov ebx, dword [esi + 0x20]
add ecx, 0x28
mov edx, dword [ebp - 0x130]
inc edx
mov dword [ebp - 0x130], edx
movzx eax, word [ebx + 6]
mov ebx, dword [ebp - 0x138]
cmp edx, eax
jb 0x460350
push str.prd_is_NULL
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
push str.Failed_to_build_resource_tree..
call dword [eax + 0x14]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
lea ecx, [ebp - 0x12c]
call fcn.0040e140
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret
sub edx, dword [ecx + 0x14]
sub edi, edx
add edi, dword [esi + 0x1c]
je 0x460388
push 0x208
call fcn.004a4e29
add esp, 4
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x460415
push 0x208
push 0
push eax
call fcn.004a8410
mov ecx, dword [ebp - 0x138]
add esp, 0xc
call fcn.004944c0
jmp 0x460417
xor eax, eax
push ebx
push esi
push edi
push edi
mov ecx, eax
mov byte [ebp - 4], 4
mov dword [esi + 0x18c], eax
call fcn.00494c30
mov eax, dword [esi + 0x18c]
cmp dword [eax + 0xc], 0x35ab1278
je 0x4603aa
push str.Invalid_internal_resource_object.
jmp 0x46038d