Function at 0x4117d0
Capabilities:
Map section object
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x4c0
mov esi, edx
mov edi, ecx
mov eax, dword [0x450010]
xor eax, ebp
mov dword [esp + 0x4b8], eax
xor eax, eax
lea ecx, [esp + 0x2c]
push eax
push 0x1c
push ecx
push eax
push dword [edi]
push 0xffffffffffffffff
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x411940
test byte [esp + 0x47], 1
je 0x411fa2
mov dword [esp + 4], esi
mov dword [esp + 0x14], edi
mov esi, dword [edi]
mov eax, dword [0x450044]
mov ebx, dword [eax + 0x2c]
mov ecx, ebx
call dword [section..00cfg]
lea edi, [esp + 0xa0]
mov ecx, 0x450044
push esi
push edi
call ebx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x411f90
movzx ebx, word [esp + 0xa0]
test bx, bx
je 0x411f90
movzx eax, bx
and eax, 0xfffffffe
add eax, ecx
add eax, 0xfffffffe
mov edx, eax
cmp bx, 2
mov esi, dword [esp + 4]
jb 0x411884
mov edx, eax
cmp word [edx], 0x5c
je 0x411884
add edx, 0xfffffffe
cmp edx, ecx
jae 0x411877
add edx, 2
lea edi, [esp + 0x24]
mov dword [edi + 4], edx
sub eax, edx
add eax, 2
mov word [edi], ax
mov word [edi + 2], ax
movsd xmm0, qword [0x445718]
lea eax, [esp + 0x1c]
movsd qword [eax], xmm0
push 1
push edi
push eax
call sub.ntdll.dll_RtlCompareUnicodeString
xor ebx, ebx
test eax, eax
je 0x411b36
push 0x4508ec
call sub.ntdll.dll_RtlAcquireSRWLockShared
push ebx
push ebx
push 0x4136d0
push 0x4508e8
call sub.ntdll.dll_RtlRunOnceExecuteOnce
mov eax, dword [0x4508e4]
test eax, eax
je 0x411af8
cmp dword [eax], 3
jl 0x411af8
mov dword [esp + 0x10], eax
mov eax, dword [0x4508f8]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
je 0x411947
cmp byte [0x4508fc], 1
jne 0x411947
mov eax, dword [0x4502e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
jne 0x411929
call fcn.00422c74
mov eax, dword [0x4502e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0xc]
jmp 0x41194c
push dword [edi]
jmp 0x411f96
call fcn.00414140
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + 4]
test eax, eax
jne 0x411af8
mov dword [esp], ebx
mov ecx, dword [ecx + 8]
call dword [section..00cfg]
push 0
call ecx
mov ebx, eax
and ebx, 0xfffffffc
je 0x411af5
movzx eax, word [ebx]
cmp eax, 0x5a4d
jne 0x411af5
mov eax, dword [ebx + 0x3c]
cmp dword [ebx + eax], 0x4550
jne 0x411af5
movzx ecx, word [ebx + eax + 0x18]
cmp ecx, 0x10b
jne 0x411af5
mov ecx, dword [ebx + eax + 0x50]
cmp ecx, 0x138
jb 0x411af5
mov dword [esp + 8], ecx
mov ecx, dword [ebx + eax + 0x74]
cmp ecx, 0x10
mov edx, 0x10
cmovb edx, ecx
cmp edx, 2
jb 0x411af5
mov edx, dword [ebx + eax + 0x80]
mov ecx, dword [esp + 8]
cmp edx, ecx
jb 0x411af5
cmp dword [ebx + edx], 0
je 0x411af5
mov eax, ecx
mov esi, ecx
dec esi
add edx, ebx
xor ecx, ecx
mov dword [esp + 8], esi
test cl, cl
je 0x411a0f
cmp dword [edx + 0x14], 0
lea edx, [edx + 0x14]
mov cl, 1
jne 0x4119fb
jmp 0x411c0a
mov eax, dword [edx + 0xc]
test eax, eax
js 0x411a2a
cmp esi, eax
jl 0x411a2a
xor ecx, ecx
cmp dword [edx + 0x14], 0
lea edx, [edx + 0x14]
jne 0x4119fb
jmp 0x411af1
mov dword [esp + 0x18], edx
add eax, ebx
push eax
lea esi, [esp + 0x54]
push esi
call sub.ntdll.dll_RtlInitAnsiString
push 1
push esi
lea eax, [esp + 0x50]
push eax
call sub.ntdll.dll_RtlAnsiStringToUnicodeString
test eax, eax
js 0x411a69
movzx ecx, word [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, ecx
and eax, 0xfffffffe
add eax, edx
add eax, 0xfffffffe
cmp cx, 2
jae 0x411a7f
mov ecx, eax
jmp 0x411a8e
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, 0xfffffffe
mov ecx, 0xfffffffe
jmp 0x411a8e
mov ecx, eax
cmp word [ecx], 0x5c
je 0x411a8e
add ecx, 0xfffffffe
cmp ecx, edx
jae 0x411a81
add ecx, 2
mov dword [esp + 0x54], ecx
sub eax, ecx
add eax, 2
mov word [esp + 0x50], ax
mov word [esp + 0x52], ax
push 1
lea eax, [esp + 0x54]
push eax
push edi
call sub.ntdll.dll_RtlCompareUnicodeString
mov dword [esp + 0xc], eax
test eax, eax
sete al
mov esi, eax
cmp dword [esp + 0x4c], 0
je 0x411acd
lea eax, [esp + 0x48]
push eax
call sub.ntdll.dll_RtlFreeUnicodeString
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x14], 0
lea edx, [eax + 0x14]
mov eax, dword [esp + 8]
mov ecx, esi
mov esi, eax
jne 0x4119fb
cmp dword [esp + 0xc], 0
je 0x411c0a
mov esi, dword [esp + 4]
mov ebx, dword [esp]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ebx
call fcn.00412000
add esp, 4
mov ebx, eax
mov dword [esp], 0
push 0x4508ec
call sub.ntdll.dll_RtlReleaseSRWLockShared
cmp ebx, 4
je 0x411e46
xor edx, edx
inc edx
cmp ebx, 1
je 0x411b47
test ebx, ebx
jne 0x411bae
mov ebx, dword [esp]
mov dword [esp + 4], 0
mov cl, 1
xor edx, edx
jmp 0x411e56
mov eax, dword [0x4508f8]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
je 0x411b99
cmp byte [0x4508fc], 1
jne 0x411b99
mov eax, dword [0x4502e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
jne 0x411b82
mov ebx, edx
call fcn.00422c74
mov edx, ebx
mov eax, dword [0x4502e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax + 0xc]
jmp 0x411ba4
mov ebx, edx
call fcn.00414140
mov edx, ebx
mov ebx, eax
test ebx, ebx
je 0x411bae
cmp dword [ebx + 0x34], 0
je 0x411bbd
xor ecx, ecx
mov dword [esp + 4], 0
jmp 0x411e53
lea eax, [ebx + 0x24]
cmp dword [ebx + 0x28], 0
je 0x411bdc
push eax
mov dword [esp + 8], eax
call sub.ntdll.dll_RtlFreeUnicodeString
xor eax, eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 4]
push eax
push edi
push 1
call sub.ntdll.dll_RtlDuplicateUnicodeString
test eax, eax
jns 0x411bf1
xor eax, eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov byte [ebx + 8], 1
xor ecx, ecx
mov dword [esp + 4], 0
mov ebx, dword [esp]
xor edx, edx
inc edx
jmp 0x411e56
mov eax, dword [0x4508e0]
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ecx
push 4
push ecx
push 2
lea edx, [esp + 0x5c]
push edx
push ecx
push ecx
push ecx
lea ecx, [esp + 0x64]
push ecx
push 0xffffffffffffffff
push eax
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x411c43
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov eax, dword [esp + 0x48]
test eax, eax
je 0x411d66
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x411c62
mov dword [eax + 0x18], 0x38
mov ecx, 0x38
mov edx, 0x1000
sub edx, ecx
add eax, ecx
mov ecx, 2
cmovne ecx, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
cmp edx, 2
jb 0x411c88
test eax, eax
je 0x411fdd
mov ecx, dword [esp + 0xc]
mov eax, ecx
shr eax, 1
mov dword [esp + 0x18], eax
xor ebx, ebx
cmp ecx, 2
lea esi, [esp + 0x50]
jb 0x411cde
xor ebx, ebx
mov eax, dword [esp + 8]
lea eax, [eax + ebx*2]
push eax
push esi
call sub.ntdll.dll_RtlInitUnicodeString
cmp word [esp + 0x50], 0
je 0x411cde
push 1
lea eax, [esp + 0xa4]
push eax
push esi
call sub.ntdll.dll_RtlCompareUnicodeString
test eax, eax
je 0x411d6b
movzx eax, word [esp + 0x52]
shr eax, 1
add ebx, eax
cmp ebx, dword [esp + 0x18]
jb 0x411ca1
movzx eax, word [esp + 0xa0]
lea ecx, [eax + ebx*2]
add ecx, 4
mov edx, dword [esp + 0xc]
and edx, 0xfffffffe
cmp ecx, edx
ja 0x411d6b
mov edx, dword [esp + 0x18]
sub edx, ebx
jb 0x411fe8
mov esi, dword [esp + 8]
test esi, esi
setne byte [esp + 0xc]
mov ecx, dword [esp + 0x18]
xor ecx, ebx
cmp edx, 0xffffffff
setne dl
or ecx, esi
je 0x411d28
and byte [esp + 0xc], dl
je 0x411fdd
mov ecx, dword [esp + 8]
test ecx, ecx
lea ecx, [ecx + ebx*2]
mov ebx, 2
cmovne ebx, ecx
push eax
push dword [esp + 0xa8]
push ebx
call sub.ntdll.dll_memcpy
add esp, 0xc
movzx eax, word [esp + 0xa0]
and eax, 0xfffffffe
add eax, ebx
push 2
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
jmp 0x411d6b
call sub.ntdll.dll_RtlGetLastWin32Error
mov eax, dword [esp + 0x48]
test eax, eax
je 0x411d8b
push eax
push 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x411d8b
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push dword [esp]
call fcn.00412000
add esp, 4
mov ebx, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x411fba
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
xor esi, esi
mov byte [esp + 8], 1
test ebx, ebx
je 0x411def
movzx eax, word [ebx]
cmp eax, 0x5a4d
jne 0x411def
mov eax, dword [ebx + 0x3c]
lea esi, [ebx + eax]
cmp dword [ebx + eax], 0x4550
jne 0x411def
movzx eax, word [esi + 0x18]
cmp eax, 0x10b
jne 0x411def
cmp dword [esi + 0x50], 0x138
setb byte [esp + 8]
mov eax, dword [esp]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
call dword [section..00cfg]
lea eax, [esp + 0x50]
push eax
call ecx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
cmp byte [esp + 8], 0
jne 0x411fc8
add ebx, dword [esi + 0x28]
lea ecx, [esp + 0x48]
mov edx, ebx
call fcn.00413c70
test al, al
je 0x411fc8
push 0x4508ec
call sub.ntdll.dll_RtlReleaseSRWLockShared
mov al, 1
mov dword [esp], eax
mov esi, dword [esp + 4]
mov edx, 2
mov al, 1
mov dword [esp + 4], eax
xor ecx, ecx
mov ebx, dword [esp]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x18], 0
je 0x411f8a
mov dword [esp], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0xa4]
push eax
push 1
call sub.ntdll.dll_RtlDuplicateUnicodeString
test eax, eax
jns 0x411e98
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [0x4508f8]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
mov dword [esp + 8], edi
je 0x411eec
cmp byte [0x4508fc], 1
jne 0x411eec
mov edi, ebx
mov eax, dword [0x4502e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
jne 0x411ed5
call fcn.00422c74
mov eax, dword [0x4502e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax + 0xc]
jmp 0x411ef5
mov edi, ebx
call fcn.00414140
mov ebx, eax
test ebx, ebx
je 0x411f33
cmp dword [ebx + 0x34], 0
jne 0x411f4e
cmp dword [ebx + 0x30], 0
je 0x411f0e
lea eax, [ebx + 0x2c]
push eax
call sub.ntdll.dll_RtlFreeUnicodeString
movsd xmm0, qword [esp + 0x48]
movsd qword [ebx + 0x2c], xmm0
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x44], eax
jmp 0x411f76
mov eax, dword [0x450044]
mov ebx, dword [eax + 0x28]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, 0x450044
call ebx
test al, al
je 0x411f76
mov eax, edi
movzx eax, al
lea ebx, [esp + 0x50]
lea edx, [esp + 0x48]
mov ecx, ebx
push eax
push dword [esp + 0x14]
push esi
push dword [esp + 0x14]
call fcn.00412f40
add esp, 0x10
mov ecx, ebx
call fcn.004116c0
cmp dword [esp + 0x4c], 0
je 0x411f87
lea eax, [esp + 0x48]
push eax
call sub.ntdll.dll_RtlFreeUnicodeString
mov ecx, dword [esp]
or cl, byte [esp + 4]
jne 0x411fa2
mov eax, dword [esp + 0x14]
push dword [eax]
push 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
mov esi, 0xc0000022
mov ecx, dword [esp + 0x4b8]
xor ecx, ebp
call fcn.004230e0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 1
mov dword [esp], eax
mov esi, dword [esp + 4]
jmp 0x411b14
push 0x4508ec
call sub.ntdll.dll_RtlReleaseSRWLockShared
mov bl, 1
mov esi, dword [esp + 4]
jmp 0x411b36
int3
int3