Function at 0x1003006
Capabilities:
Enumerate pe sections
Parse pe header
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e0
mov eax, dword [0x101003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x490], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push 0x1fa
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x280]
push esi
push eax
mov dword [ebp - 0x284], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0xff
push edi
push 0x1001300
lea eax, [ebp - 0x284]
push eax
call fcn.01008ca4
xor eax, eax
push 0x1fc
mov word [ebp - 0x484], ax
lea eax, [ebp - 0x482]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push dword [ebp - 0x488]
lea eax, [ebp - 0x484]
push eax
call fcn.01008ca4
lea eax, [ebp - 0x484]
push 0x10013fc
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
mov dword [ebp - 0x494], eax
mov eax, dword [ebp - 0x490]
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x10030bb
sub eax, ecx
sar eax, 1
je 0x1003159
push esi
push 0x10013fc
push dword [ebp - 0x488]
call fcn.01008c34
mov dword [ebp - 0x488], eax
cmp eax, esi
jne 0x10030fe
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010078f9
leave
ret 0x10
push 1
push 0x24
push eax
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
push edi
push dword [ebp - 0x490]
lea eax, [ebp - 0x284]
push eax
call fcn.01008ce7
push edi
push 0x10012f0
lea eax, [ebp - 0x284]
push eax
call fcn.01008ce7
push edi
push dword [ebp - 0x494]
lea eax, [ebp - 0x284]
push eax
call fcn.01008ce7
push edi
push dword [ebp - 0x488]
lea eax, [ebp - 0x284]
push eax
call fcn.01008ce7
jmp 0x100316c
push edi
push dword [ebp - 0x488]
lea eax, [ebp - 0x284]
push eax
call fcn.01008ca4
call fcn.01002a50
mov dword [ebp - 0x490], eax
cmp eax, esi
je 0x1003199
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
lea ecx, [ebp - 0x284]
mov dword [eax + 0x14c0], ecx
mov dword [eax + 0x14c4], esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x488], eax
cmp eax, 0xffffffff
je 0x10030ea
cmp dword [ebp - 0x490], esi
je 0x10031e1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
mov dword [eax + 0x14c0], esi
mov dword [eax + 0x14c4], esi
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x490], eax
cmp eax, esi
jne 0x100320e
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10030ea
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 0x4d8], ecx
cmp ecx, esi
jne 0x1003241
push dword [ebp - 0x490]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x488]
call esi
jmp 0x10030ea
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x1003254
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1003226
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
mov dword [ebp - 0x4d4], eax
je 0x100328e
xor esi, esi
inc esi
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x490]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x488]
call edi
mov eax, esi
jmp 0x10030ed
cmp dword [ebp + 0x14], 2
lea edx, [eax + 0x108]
je 0x10032a0
lea edx, [eax + 0xf8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x48c], edx
movzx edx, word [eax + 6]
mov dword [ebp - 0x4ac], ecx
cmp edx, esi
jbe 0x10033cc
lea eax, [ecx - 1]
not eax
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], edx
jmp 0x10032d4
mov ecx, dword [ebp - 0x4ac]
mov edx, dword [ebp - 0x48c]
mov eax, dword [edx + 8]
cmp eax, esi
jne 0x10032e4
mov eax, dword [edx + 0x10]
push 4
lea esi, [eax + ecx - 1]
and esi, dword [ebp - 0x498]
push 0x10013f4
push edx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x100330b
add dword [ebx + 0xc], esi
jmp 0x10033b1
push 0x10013ec
push dword [ebp - 0x48c]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x100332a
add dword [ebx + 0x10], esi
jmp 0x10033b1
push 0x10013e4
push dword [ebp - 0x48c]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x1003346
mov dword [ebx + 8], esi
jmp 0x10033b1
push 0x10013dc
push dword [ebp - 0x48c]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x1003362
mov dword [ebx + 0x18], esi
jmp 0x10033b1
push 0x10013d4
push dword [ebp - 0x48c]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x100337e
mov dword [ebx + 0x14], esi
jmp 0x10033b1
push 0x10013cc
push dword [ebp - 0x48c]
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x100339a
mov dword [ebx + 0x1c], esi
jmp 0x10033b1
mov eax, dword [ebp - 0x48c]
mov eax, dword [eax + 0x24]
test eax, 0x20000000
je 0x10033ae
add dword [ebx], esi
jmp 0x10033b1
add dword [ebx + 4], esi
add dword [ebp - 0x48c], 0x28
xor esi, esi
dec dword [ebp - 0x494]
jne 0x10032ce
mov eax, dword [ebp - 0x4d4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x4b0], eax
lea eax, [ebp - 0x4b0]
push eax
call dword [sym.imp.msvcrt.dll_localtime]
pop ecx
cmp eax, esi
je 0x10034e5
mov ecx, 0x76c
add cx, word [eax + 0x14]
mov dword [ebp - 0x494], esi
mov word [ebp - 0x4a8], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x4a6], cx
mov cx, word [eax + 0x18]
mov word [ebp - 0x4a4], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x4a2], cx
mov cx, word [eax + 8]
mov word [ebp - 0x4a0], cx
mov cx, word [eax + 4]
mov ax, word [eax]
mov word [ebp - 0x49c], ax
xor eax, eax
mov word [ebp - 0x49a], ax
lea eax, [ebp - 0x494]
push eax
mov word [ebp - 0x49e], cx
call fcn.01002e30
mov esi, dword [ebp - 0x494]
push 0x40
lea ecx, [ebp - 0x84]
push ecx
mov ecx, esi
dec ecx
neg ecx
sbb ecx, ecx
not ecx
and ecx, 0x10013b4
push ecx
lea ecx, [ebp - 0x4a8]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push edi
lea eax, [ebp - 0x84]
push eax
add ebx, 0x20
push ebx
call fcn.01008ca4
dec esi
neg esi
push 0x40
sbb esi, esi
lea eax, [ebp - 0x84]
push eax
not esi
and esi, 0x10013a0
push esi
lea eax, [ebp - 0x4a8]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov esi, 0xfe
push esi
push 0x100139c
push ebx
call fcn.01008ce7
push esi
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.01008ce7
xor esi, esi
mov ecx, dword [ebp - 0x4d8]
jmp 0x100326a