Function at 0x411c70
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor esi, esi
mov ebx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ebx
dec eax
je 0x412074
dec eax
je 0x412031
dec eax
je 0x411f64
dec eax
je 0x411ed4
dec eax
je 0x411e80
sub eax, 3
je 0x411cc1
mov esi, 0xc000000d
jmp 0x4120d5
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
cmp eax, 0x22
jb 0x411cb7
cmp eax, ecx
jbe 0x411cb7
xor edx, edx
push 0x1e
pop esi
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x411d84
sub eax, ecx
lea esi, [ecx + edi]
cmp dword [esi], 3
mov dword [esp + 0x10], eax
jne 0x411cb7
cmp eax, 0x2e
jb 0x411cb7
mov edx, dword [esi + 0x14]
mov edi, dword [edx + esi]
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x18], edi
cmp edi, 2
mov edi, dword [ebp + 8]
jne 0x411d3f
cmp ecx, 0x16
jb 0x411cb7
lea eax, [esi + 0x14]
add eax, edx
push eax
call fcn.00413464
test eax, eax
je 0x411d55
push eax
mov eax, dword fs:[0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, 0xc00000bb
mov ebx, dword [esp + 0xc]
jmp 0x4120b6
cmp dword [esp + 0x18], 8
jne 0x411cb7
cmp ecx, 0x22
jb 0x411cb7
jmp 0x411d59
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
xor ecx, ecx
push ecx
push eax
push esi
call fcn.00411c70
mov esi, eax
test esi, esi
js 0x4120b4
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
mov dword [esp + 0x18], 0x28
add esi, 0x46
cmp dword [edi + 0x14], 1
jne 0x411da4
lea ecx, [edi + 0x20]
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x411d92
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
push esi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x411dcb
mov esi, 0xc000009a
jmp 0x4120b4
push esi
xor eax, eax
push eax
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 8
mov dword [ebx + 8], esi
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x14], esi
jne 0x411df6
mov dword [ebx + 0x10], esi
mov eax, dword [edi + 0x1c]
push 0x1e
mov dword [ebx + 0x14], eax
pop esi
jmp 0x411e3e
add edi, 0x20
mov ecx, edi
mov dword [ebx + 0x10], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x411e05
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push edi
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.0041bcf9
add esp, 0xc
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x411e28
sub edi, ecx
sar edi, 1
lea esi, [edi*2 + 0x1e]
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x411e79
mov edx, dword [esp + 0x18]
lea ecx, [esi + ebx]
mov dword [ecx], edi
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
add eax, edx
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 6
mov eax, dword [esp + 0x14]
push dword [eax + 8]
push eax
lea eax, [ecx + edx]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x18], esi
mov esi, edi
jmp 0x4120b6
add edi, 0x14
cmp dword [ebp + 0xc], 0x15
jb 0x411cb7
cmp dword [ebp + 0xc], 0x20
jb 0x411cb7
cmp dword [edi + 8], 0x100000
ja 0x411cb7
push dword [edi + 8]
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x411dc1
push dword [edi + 8]
push edi
push ebx
call sub.msvcrt.dll_memcpy
jmp 0x4120b1
mov edx, dword [ebp + 0xc]
cmp edx, 0x2e
jb 0x411cb7
mov esi, dword [edi + 0x14]
test esi, esi
je 0x411cb7
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
sub edx, esi
lea ecx, [esi + edi]
push edx
push ecx
lea edi, [esp + 0x1c]
call fcn.004120ea
mov esi, eax
test esi, esi
js 0x4120b4
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 4]
add edi, 0x28
push edi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x411fc6
push edi
xor eax, eax
push eax
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], 3
lea eax, [esi + 0x28]
jmp 0x412004
mov edx, dword [ebp + 0xc]
cmp edx, 0x2e
jb 0x411cb7
mov esi, dword [edi + 0x14]
test esi, esi
je 0x411cb7
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
sub edx, esi
lea ecx, [esi + edi]
push edx
push ecx
lea edi, [esp + 0x1c]
call fcn.004120ea
mov esi, eax
test esi, esi
js 0x4120b4
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 4]
add edi, 0x14
push edi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
jne 0x411fe6
push dword [esp + 0x10]
mov eax, dword fs:[0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, 0xc000009a
jmp 0x411d36
push edi
xor eax, eax
push eax
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 0x10], 5
lea eax, [esi + 0x14]
push dword [ebx + 4]
push dword [esp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword fs:[0x30]
add esp, 0xc
push dword [esp + 0x10]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, edi
jmp 0x411d36
cmp dword [ebp + 0xc], 0x16
jb 0x411cb7
add edi, 0x14
push edi
call fcn.00416222
test al, al
jne 0x41204f
mov esi, 0xc00000bb
jmp 0x4120b4
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00412d0c
mov ebx, dword [esp + 0xc]
mov esi, eax
xor edi, edi
test esi, esi
js 0x4120b6
jmp 0x411e79
cmp dword [ebp + 0xc], 0x14
jb 0x411cb7
mov eax, dword fs:[0x30]
push 0x48
pop edi
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x411dc1
push edi
push esi
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 5
mov dword [ebx + 8], edi
add esp, 0xc
xor edi, edi
cmp dword [esp + 0x14], 0
je 0x4120d5
push dword [esp + 0x14]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10