Function at 0x524fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x579119
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x50], 0
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea esi, [esp + 0x24]
mov byte [esp + 0x50], 1
call fcn.00524430
push str.drivers_
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
call fcn.00418760
cmp eax, 2
mov esi, 8
jne 0x525089
cmp dword [esp + 0x3c], esi
jb 0x525055
mov eax, dword [esp + 0x28]
test eax, eax
mov ebx, eax
jne 0x525059
jmp 0x52506f
lea ebx, [esp + 0x28]
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x525060
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
lea eax, [esp + 0x1c]
call fcn.00410570
push 0x10
push str.installdrv64.exe
lea ecx, [esp + 0x20]
push ecx
jmp 0x5250cb
cmp dword [esp + 0x3c], esi
jb 0x52509b
mov eax, dword [esp + 0x28]
test eax, eax
mov ebx, eax
jne 0x52509f
jmp 0x5250b3
lea ebx, [esp + 0x28]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5250a4
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
lea eax, [esp + 0x1c]
call fcn.00410570
push 0xe
push str.installdrv.exe
lea edx, [esp + 0x20]
push edx
call fcn.00410240
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
mov dword [esp + 0x14], 0
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
push eax
push edi
push str._f___s___x___s_
lea edi, [esp + 0x28]
mov byte [esp + 0x5c], 2
call fcn.00410c00
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp dword [esp + 0x3c], esi
jae 0x525118
lea eax, [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
push edi
push ebx
xor ecx, ecx
call fcn.00418290
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, 0x8007000d
je 0x525146
cmp eax, 0x80070490
jne 0x525193
mov eax, dword [0x619880]
test eax, eax
jne 0x525159
call fcn.00418600
mov dword [0x619880], eax
cmp eax, 0xb
jne 0x52518f
push 0
push str.DsmSvc
call fcn.00435290
push 0
push str.DeviceInstall
call fcn.00435290
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp dword [esp + 0x3c], esi
jae 0x525187
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x18]
push edx
jmp 0x5251b7
mov eax, dword [esp + 0x14]
cmp eax, 0x8007001f
jne 0x5251c5
call fcn.00513ce0
test eax, eax
je 0x5251c5
cmp dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
jae 0x5251b1
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push edi
push ebx
xor ecx, ecx
call fcn.00418290
add esp, 0x14
mov ecx, dword [esp + 0x14]
push ecx
push edi
push str.InstallDriverForWifiDevice:__s___result:_x
mov ecx, 0x6180b8
call fcn.00435a30
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jle 0x5251ef
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [edi - 0x10]
mov byte [esp + 0x50], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x525212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x525233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00569ed6
mov esp, ebp
pop ebp
ret