Function at 0x413730
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf61a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x5080f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp dword [ebx + 8], 0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0
je 0x4137e5
push 1
push 0
mov dword [esi], 0x4e9d14
mov dword [esi + 0xa0], 0x4e9a98
mov dword [esi + 0xb0], 0x4e9d08
call fcn.00417e40
lea ecx, [esi + 0x9c]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x28], 1
call fcn.00417d20
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xac], vtable.asw::log::ILogger.0
mov dword [ebp - 0x28], 7
mov eax, dword [eax + 8]
mov dword [eax + esi + 0xb0], 0x4e9b0c
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esi + eax], vtable.asw::mi::Exportable_class_asw::log::ILogger_.1.0
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esi + eax], vtable.asw::mi::Exportable_class_asw::log::ILogger_.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 2
mov eax, dword [esi]
push 0x10104
mov eax, dword [eax + 8]
mov dword [esi + eax], vtable.asw::log::Logger.1.0
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esi + eax], vtable.asw::log::Logger.0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x9c]
mov dword [esi + ecx - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
lea eax, [ecx - 0xac]
mov dword [esi + ecx - 4], eax
call fcn.00484da3
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
push 0x10080
lea esi, [ecx + 0x80]
mov dword [ecx], eax
push eax
push esi
mov dword [ecx + 0x40], eax
call fcn.004a08b0
mov edi, 0x401
lea edx, [esi + 0x10080]
mov eax, edi
mov dword [ebp - 0x1c], edx
lea ecx, [esi + 0x3f]
mov dword [edx], eax
and ecx, 0xffffffc0
mov dword [ebp - 0x14], edi
add esp, 0xc
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 0x2c], ecx
nop
mov word [ecx], di
mov edx, dword [edx]
movzx esi, ax
mov edi, esi
shl edi, 6
add edi, dword [ebp - 0x18]
mov ecx, edx
mov word [ebp - 0x14], si
mov esi, dword [ebp - 0x1c]
shr ecx, 0x10
mov word [ebp - 0x12], cx
mov word [edi], dx
mov edx, dword [ebp - 0x14]
xchg dword [esi], edx
mov ecx, dword [ebp - 0x2c]
inc eax
add ecx, 0x40
mov edx, esi
mov dword [ebp - 0x2c], ecx
mov edi, 0x401
cmp eax, 0x401
jne 0x4138a0
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 0x80]
call fcn.00415340
movzx eax, ax
mov edx, edi
cmp ax, dx
je 0x413910
mov ecx, eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
mov eax, edi
shl ecx, 6
mov dword [edx + ecx], eax
sar ecx, 6
movzx eax, cx
jmp 0x413912
mov eax, edx
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov edi, dword [ebp - 0x24]
mov dword [esi + 0x40], eax
mov dword [edi + 0xc], esi
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 4
push 0x50
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00484da3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x30], 0
lea eax, [edi + 0x44]
mov dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push eax
mov dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10
mov byte [ebp - 4], 6
call fcn.00484da3
mov ecx, eax
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
lea eax, [ecx + 0xc]
add esp, 4
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 1
mov dword [ecx + 8], 1
mov dword [ecx], vtable.std::_Ref_count_obj2_class_asw::wrappers::basic_handle_void___struct_asw::wrappers::detail::traits_file_handle__.0
mov dword [eax], 0xffffffff
movq qword [edi + 0x5c], xmm0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], 0
mov esi, dword [ebp - 0x24]
lea ecx, [edi + 0x80]
mov dword [edi + 0x74], 0
xor eax, eax
mov dword [edi + 0x78], 7
mov word [edi + 0x64], ax
add edi, 0x88
movq qword [ecx], xmm0
lea edx, [esi + 0x30]
mov dword [edi], eax
lea eax, [esi + 0x8c]
mov dword [eax], 0
mov dword [ebp - 0x18], eax
mov eax, 9
mov dword [esi + 0x90], 0
xchg dword [edx], eax
mov eax, 7
lea edx, [esi + 0x38]
xchg dword [edx], eax
xor eax, eax
lea edx, [esi + 0x3c]
xchg dword [edx], eax
mov edx, dword [ebp - 0x24]
mov esi, 2
mov eax, esi
add edx, 0x40
xchg dword [edx], eax
push 0
push 0x400000
call fcn.004145f0
xchg dword [edi], esi
mov ecx, dword [ebp - 0x18]
mov eax, 9
xchg dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4