Function at 0x1005cfc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013e1d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push esi
push edi
push 0x180
mov dword [ebp - 0x10], ecx
call fcn.1013b121
mov esi, eax
mov dword [ebp - 0x20], esi
push 0x180
push 0
push esi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.1006a670
mov dword [esi + 0xf0], 0
lea ecx, [esi + 0xf8]
mov dword [esi + 0xf4], 0
lea eax, [esi + 0xf0]
mov dword [ecx + 8], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 7
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 7
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov byte [ecx + 0x64], 0
mov dword [ebp - 0x30], eax
lea eax, [ecx + 0x20]
mov dword [esi + 0x160], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x168], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
mov dword [esi + 0x170], 0
mov dword [esi + 0x174], 0
mov dword [esi + 0x178], 0
mov byte [esi + 0x17c], 0
mov dword [ebp - 0x34], esi
push 0x10
mov dword [ebp - 4], 1
call fcn.1013b121
mov edi, eax
mov dword [ebp - 0x60], esi
xorps xmm0, xmm0
mov dword [ebp - 0x28], edi
lea eax, [edi + 8]
mov dword [ebp - 0x5c], edi
lea ebx, [edi + 4]
mov dword [ebp - 0x1c], eax
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [ebx], 1
mov dword [eax], 1
mov dword [edi], vtable.std::_Ref_count_struct_blackbone::ImageContext_.0
mov dword [edi + 0xc], esi
sub esp, 0x14
mov dword [ebp - 4], 2
mov ecx, esp
push dword [ebp + 0xc]
call fcn.1004fd90
lea ecx, [ebp - 0x58]
call fcn.10065f30
mov ecx, dword [ebp - 0x24]
add esp, 0x18
push eax
call fcn.10062210
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x1005d176
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005d16c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d16c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x58]
call fcn.10065780
push eax
lea ecx, [esi + 0x100]
call fcn.10062210
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x1005d1c9
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005d1bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d1bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x178], ecx
test eax, eax
je 0x1005d1eb
push 1
push ecx
push eax
mov ecx, esi
call fcn.1006ab90
mov ecx, eax
mov dword [ebp - 0x24], ecx
jmp 0x1005d202
mov eax, ecx
mov ecx, esi
shr eax, 0xf
and al, 1
push eax
push dword [ebp + 0xc]
call fcn.1006a9c0
mov ecx, eax
mov dword [ebp - 0x24], eax
test ecx, ecx
jns 0x1005d272
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x1005d211
mov eax, dword [eax]
push ecx
push dword [ebp + 0x10]
push eax
push str.ManualMap:_Failed_to_load_image__ls_0x_p._Status_0x_X
call fcn.10062590
add esp, 0x10
mov ecx, esi
push 0
call fcn.1006ac40
mov eax, dword [ebp + 8]
or esi, 0xffffffff
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov byte [eax + 0xc], 0
mov eax, esi
lock xadd dword [ebx], eax
jne 0x1005d25a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx], esi
dec esi
jne 0x1005d25a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
or ebx, 0xffffffff
test dword [ebp + 0x1c], 0x100
jne 0x1005d2fa
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
xor eax, eax
add ecx, 0x10
cmp byte [esi + 0xd], al
setne al
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.100660f0
cmp dword [ebp - 0x18], 0
je 0x1005d2d5
push 0
mov ecx, esi
call fcn.1006ac40
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [esi + 4], ecx
lea ecx, [edi + 4]
mov dword [esi + 8], eax
mov byte [esi + 0xc], 1
or esi, ebx
mov eax, esi
lock xadd dword [ecx], eax
jmp 0x1005d241
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1005d2fa
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x1005d2fa
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x1005d2fa
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x1005d360
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov al, byte [eax + 0xd]
test al, al
jne 0x1005d360
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x1005d31a
mov eax, dword [eax]
push eax
push str.ManualMap:_Cant_map_x86_dll__ls_into_native_x64_process
call fcn.10062590
add esp, 8
mov ecx, esi
push 0
call fcn.1006ac40
mov eax, dword [ebp + 8]
mov dword [eax], 0xc0000359
mov byte [eax + 0xc], 0
mov eax, ebx
lea ecx, [edi + 4]
lock xadd dword [ecx], eax
jne 0x1005d25a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx], ebx
dec ebx
jmp 0x1005d251
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x1005d36b
mov eax, dword [eax]
push eax
push str.ManualMap:_Loading_new_image__ls
call fcn.10062590
xor eax, eax
add esp, 8
cmp byte [esi + 0xd], al
setne al
mov dword [esi + 0x134], eax
mov eax, dword [ebp + 0x1c]
test al, 0x20
je 0x1005d39f
push dword [esi + 0x28]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.10061e00
jmp 0x1005d5f0
test al, 0x10
je 0x1005d5f0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
call fcn.1005c390
push 0
push 0x101934d4
lea ecx, [ebp - 0x58]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.100512a0
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 3
cmp dword [ecx], 0
jle 0x1005d3fc
xor eax, eax
jmp 0x1005d45e
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x10196fac
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax]
cmp edx, ecx
je 0x1005d439
test ecx, ecx
jle 0x1005d435
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, edx
test ecx, ecx
jle 0x1005d448
mov dword [eax + 4], 0
xor eax, eax
jmp 0x1005d45e
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.1004fd90
mov ecx, dword [ebp + 0xc]
call fcn.10078270
shr eax, 0x1f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
mov dword [ebp + 0xc], eax
cmp ecx, 8
jb 0x1005d4a7
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005d49a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d49a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
mov eax, dword [ebp + 0xc]
add esp, 8
test al, al
je 0x1005d4f4
push 0
mov ecx, esi
call fcn.1006ac40
call fcn.1005c390
mov esi, dword [ebp + 8]
lea ecx, [edi + 4]
mov eax, dword [eax + 4]
mov dword [esi], eax
mov eax, ebx
mov byte [esi + 0xc], 0
lock xadd dword [ecx], eax
jne 0x1005d25d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx], ebx
dec ebx
jne 0x1005d25d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1005d25d
call fcn.1005c390
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
sub esp, 0xc
mov ecx, dword [ecx]
push edx
lea edx, [ebp - 0x38]
push edx
push dword [ecx + 4]
mov ecx, eax
call fcn.10078920
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x1005d579
mov eax, dword [esi + 0x28]
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
call fcn.1005c390
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
sub esp, 0xc
mov ecx, dword [ecx]
push edx
lea edx, [ebp - 0x38]
push edx
push dword [ecx + 4]
mov ecx, eax
call fcn.10078920
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x1005d579
push eax
push str.ManualMap:_Failed_to_allocate_physical_memory_for_image__status_0x_X
call fcn.10062590
add esp, 8
mov ecx, esi
push 0
call fcn.1006ac40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x1005d33a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
push 1
push 1
push 0x40
push dword [ebp - 0x18]
mov eax, dword [eax]
push dword [ebp - 0x34]
add eax, 0x58
push dword [ebp - 0x38]
push eax
call fcn.1006fbd0
mov ecx, dword [esi + 0xf0]
mov edx, eax
mov dword [ebp + 0xc], ecx
mov ecx, dword [edx]
cmp dword [ebp + 0xc], ecx
je 0x1005d5c8
mov dword [esi + 0xf0], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [esi + 0xf4]
mov dword [esi + 0xf4], eax
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x1005d5f0
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x1005d5f0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x1005d5f0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0xf0]
test ecx, ecx
je 0x1005d605
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x1005d723
mov eax, dword [ebp - 0x10]
push 1
push dword [esi + 0x24]
push dword [esi + 0x20]
mov ecx, dword [eax]
lea eax, [ebp - 0x50]
push 0x40
push dword [esi + 0x28]
add ecx, 0x58
push eax
call fcn.10077370
mov byte [ebp - 4], 4
cmp dword [ebp - 0x50], 0
jge 0x1005d6b4
mov ecx, dword [ebp - 0x24]
push ecx
push str.ManualMap:_Failed_to_allocate_memory_for_image__status_0x_X
call fcn.10062590
add esp, 8
mov ecx, esi
push 0
call fcn.1006ac40
cmp byte [ebp - 0x44], 0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x50]
mov dword [esi], eax
mov byte [esi + 0xc], 0
je 0x1005d685
mov ecx, dword [ebp - 0x48]
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1005d685
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x1005d685
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 8]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x1005d685
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
lea ecx, [edi + 4]
lock xadd dword [ecx], eax
jne 0x1005d25d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx], ebx
dec ebx
jne 0x1005d25d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1005d25d
mov dl, byte [ebp - 0x44]
test dl, dl
je 0x1005e036
mov ecx, dword [esi + 0xf0]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp + 0xc], ecx
je 0x1005d6f3
mov dword [esi + 0xf0], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [esi + 0xf4]
mov dword [esi + 0xf4], eax
mov dl, byte [ebp - 0x44]
mov dword [ebp - 0x48], ecx
jmp 0x1005d6f6
mov ecx, dword [ebp - 0x48]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 4], 2
test dl, dl
je 0x1005d723
test ecx, ecx
je 0x1005d723
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x1005d723
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x1005d723
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x1005d734
mov edx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x1005d742
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov dword [esi + 0xf8], edx
mov dword [esi + 0xfc], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x1005d768
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x1005d776
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push eax
push ecx
push str.ManualMap:_Image_base_allocated_at_0x_016llx
call fcn.10062590
mov eax, dword [ebp + 0x1c]
add esp, 0xc
or eax, 0x8000
cmp dword [esi + 0x38], 0
cmovne eax, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
test eax, 0x8000
jne 0x1005d7c5
mov ecx, dword [ebp - 0x10]
push esi
call fcn.10060920
mov dword [ebp + 0x1c], eax
test eax, eax
jns 0x1005d7c5
push 0
mov ecx, esi
call fcn.1006ac40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x1005d33a
sub esp, 8
lea ecx, [edi + 4]
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [ecx]
mov ecx, dword [ebp - 0x10]
mov dword [eax], esi
mov dword [eax + 4], edi
call fcn.1005e0e0
mov dword [ebp + 0x1c], eax
test eax, eax
js 0x1005d7af
sub esp, 8
lea ecx, [edi + 4]
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [ecx]
mov ecx, dword [ebp - 0x10]
mov dword [eax], esi
mov dword [eax + 4], edi
call fcn.1005e470
mov dword [ebp + 0x1c], eax
test eax, eax
js 0x1005d7af
mov eax, dword [esi + 0x134]
lea ecx, [esi + 0xf8]
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
test dword [ebp + 0xc], 0x100
push ecx
mov byte [ebp - 4], 5
push ecx
je 0x1005d8b4
lea eax, [ebp - 0xb4]
push eax
call fcn.10068270
mov esi, eax
push 0x60
mov byte [ebp - 4], 6
call fcn.1013b121
xorps xmm0, xmm0
mov dword [ebp - 0x24], eax
add esp, 4
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_struct_blackbone::ModuleData_const__.0
add eax, 0x10
push esi
mov ecx, eax
mov dword [ebp + 0x10], eax
call fcn.100635a0
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xb4]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
call fcn.1005e040
jmp 0x1005da34
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
lea eax, [ebp - 0xb4]
push eax
call fcn.10068270
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0xd0]
call fcn.1004fd90
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xb8], eax
push 0x60
mov byte [ebp - 4], 8
call fcn.1013b121
mov edi, eax
add esp, 4
mov dword [ebp + 0x10], edi
mov byte [ebp - 4], 9
lea esi, [edi + 0x10]
mov eax, dword [ebp - 0xb4]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0xb0]
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj2_struct_blackbone::ModuleData_const__.0
mov dword [esi], eax
lea eax, [ebp - 0xac]
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x34], esi
call fcn.1004fd90
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x20]
push eax
call fcn.1004fd90
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x70]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x74]
mov dword [esi + 0x40], eax
mov al, byte [ebp - 0x6c]
mov dword [esi + 0x44], ecx
mov byte [esi + 0x48], al
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebx + 0x1c]
call fcn.10068b20
mov esi, dword [eax]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1005d9a2
lock inc dword [eax + 4]
mov eax, dword [esi + 0x24]
or ebx, 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x28]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x24], esi
test edi, edi
je 0x1005d9d7
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x1005d9d7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x1005d9d7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xbc]
cmp ecx, 8
jb 0x1005da1d
mov edx, dword [ebp - 0xd0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005da13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005da13
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.1005e040
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
test dword [ebp + 0xc], 0x20000
jne 0x1005da68
cmp dword [ebp + 0x1c], 1
jne 0x1005da68
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp byte [eax + 0xc], 0
je 0x1005da68
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov byte [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
jmp 0x1005da73
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
push 0
sub esp, 8
mov byte [ebp - 4], 0xc
mov eax, esp
lea ecx, [edi + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], edi
call fcn.1005ed40
mov dword [ebp - 0x28], eax
test eax, eax
jns 0x1005db18
mov ecx, dword [ebp - 0x20]
push 0
call fcn.1006ac40
mov eax, dword [ebp - 0x2c]
push dword [ebp + 0x1c]
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, 0x10
call fcn.10068430
cmp byte [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov byte [eax + 0xc], 0
je 0x1005dae4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test esi, esi
je 0x1005d33e
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1005d33e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1005d33e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x1005d33e
test dword [ebp + 0xc], 0x4000
jne 0x1005db56
push 1
sub esp, 8
lea ecx, [edi + 4]
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], edi
call fcn.1005ed40
mov dword [ebp - 0x28], eax
test eax, eax
js 0x1005daa8
mov byte [ebp - 4], 5
cmp byte [ebp - 0x14], 0
je 0x1005db69
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 0x10
mov dword [ebp - 0x34], ecx
jne 0x1005dba1
sub esp, 8
lea ecx, [edi + 4]
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], edi
call fcn.1005e310
mov eax, dword [ebp + 0xc]
test eax, 0x1000
jne 0x1005dc31
sub esp, 8
lea ecx, [edi + 4]
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], edi
call fcn.1005f710
mov dword [ebp - 0x28], eax
test eax, eax
jns 0x1005dc31
cmp eax, 0xc0000225
je 0x1005dc31
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x1c], 8
lea ecx, [edx + 8]
jb 0x1005dbf1
mov ecx, dword [edx + 8]
push ecx
push str.ManualMap:_Failed_to_enable_exception_handling_for_image__ls
call fcn.10062590
mov ecx, dword [ebp - 0x20]
add esp, 8
push 0
call fcn.1006ac40
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x2c]
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, 0x10
call fcn.10068430
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov byte [eax + 0xc], 0
jmp 0x1005dae4
sub esp, 8
lea ecx, [edi + 4]
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], edi
call fcn.1005fb10
mov dword [ebp - 0x28], eax
test eax, eax
jns 0x1005dc77
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x1c], 8
lea ecx, [eax + 8]
jb 0x1005dc6f
mov ecx, dword [eax + 8]
push ecx
push str.ManualMap:_Failed_to_initialize_cookie_for_image__ls
jmp 0x1005dbf7
cmp dword [ebp - 0x34], 0
je 0x1005dcc1
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
call fcn.10061d40
mov dword [ebp - 0x34], eax
test eax, eax
jns 0x1005dcc1
mov ecx, dword [ebp - 0x20]
push 0
call fcn.1006ac40
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x2c]
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, 0x10
call fcn.10068430
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov byte [eax + 0xc], 0
jmp 0x1005dae4
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
test eax, eax
je 0x1005dcd4
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x30], ecx
jmp 0x1005dce5
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1005dcf8
xor ecx, ecx
add eax, edx
adc ecx, dword [ebp - 0x30]
jmp 0x1005dd06
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x150], eax
mov eax, dword [ebp + 0xc]
and al, 2
mov dword [esi + 0x154], ecx
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xff
mov dword [esi + 0x148], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x1005dd59
push dword [ebp + 0x10]
push dword [eax]
push dword [eax + 0x38]
lea eax, [ebp - 0x18]
push 1
push eax
call ecx
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp eax, 0xde
je 0x1005dd56
mov dword [esi + 0x148], eax
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x148], 0
je 0x1005dd9d
mov ecx, dword [eax]
lea eax, [esi + 0xf8]
add ecx, 0x1e8
push eax
call fcn.10072a50
test al, al
jne 0x1005dd9d
cmp dword [esi + 0x114], 8
lea ecx, [esi + 0x100]
jb 0x1005dd8f
mov ecx, dword [esi + 0x100]
push ecx
push str.ManualMap:_Failed_to_add_loader_reference_for_image__ls
call fcn.10062590
add esp, 8
test dword [ebp + 0xc], 0x10000
jne 0x1005df7c
lea eax, [edi + 4]
lock inc dword [eax]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edi
mov byte [ebp - 4], 0xd
cmp byte [esi + 0xd], 0
je 0x1005ddca
mov eax, dword [esi + 0x18]
add eax, 0xd0
jmp 0x1005ddd2
mov eax, dword [esi + 0x14]
add eax, 0xc0
mov eax, dword [eax]
test eax, eax
jne 0x1005dddd
mov dword [ebp + 0xc], eax
jmp 0x1005ddea
push 1
push eax
mov ecx, esi
call fcn.1006b7c0
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x1005de01
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
jmp 0x1005de15
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 8]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebp + 0xc]
cdq
sub eax, ecx
sbb edx, esi
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
adc edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
test eax, eax
je 0x1005df52
cmp dword [eax + 8], 0
je 0x1005df52
mov esi, dword [ebp - 0x20]
cmp dword [esi + 0x114], 8
lea eax, [esi + 0x100]
jb 0x1005de5a
mov eax, dword [eax]
push eax
push str.ManualMap:_Performing_static_TLS_initialization_for_image__ls
call fcn.10062590
mov eax, dword [ebp - 0x10]
add esp, 8
push dword [ebp - 0x34]
mov ecx, dword [eax]
lea eax, [esi + 0xf8]
push dword [ebp - 0x28]
add ecx, 0x1e8
push eax
call fcn.10073080
mov dword [ebp + 0xc], eax
mov ecx, ebx
mov byte [ebp - 4], 5
lea eax, [edi + 4]
lock xadd dword [eax], ecx
jne 0x1005deaf
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
mov eax, ebx
lea ecx, [edi + 8]
lock xadd dword [ecx], eax
jne 0x1005deaf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jns 0x1005df7c
cmp dword [esi + 0x114], 8
lea edx, [esi + 0x100]
jb 0x1005decf
mov edx, dword [esi + 0x100]
push ecx
push edx
push str.ManualMap:_Failed_to_initialize_static_TLS_for_image__ls__status_0x_X
call fcn.10062590
add esp, 0xc
mov ecx, esi
push 0
call fcn.1006ac40
push dword [ebp + 0x1c]
lea eax, [esi + 0x100]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, 0x10
call fcn.10068430
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
mov dword [eax], ecx
mov byte [eax + 0xc], 0
test esi, esi
je 0x1005df30
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1005df30
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1005df30
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, ebx
lea ecx, [edi + 4]
lock xadd dword [ecx], eax
jne 0x1005d25a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [ebp - 0x1c]
lock xadd dword [eax], ebx
dec ebx
jmp 0x1005d251
mov byte [ebp - 4], 5
lea ecx, [edi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x1005df79
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lea ecx, [edi + 8]
lock xadd dword [ecx], eax
jne 0x1005df79
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x1005df8d
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x1005df9b
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
lea edx, [esi + 0x160]
push edx
push eax
push ecx
mov ecx, esi
call fcn.1006b860
push 0
mov ecx, esi
call fcn.1006ac40
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x1005dfc2
mov byte [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x1005dfdd
mov dword [eax + 4], edi
xor edi, edi
mov dword [eax], esi
add dword [ecx + 4], 8
jmp 0x1005dfea
lea edx, [ebp - 0x60]
push edx
push eax
call fcn.100630e0
mov edi, dword [ebp - 0x5c]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov byte [esi + 0xc], 1
test edi, edi
je 0x1005d25d
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x1005d25d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x1005d25d
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
jmp 0x1005d25d
call fcn.1005c290
int3