Function at 0x10005060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push str._WJRA____CWjraConfig::SwitchStaMode_beging_
mov ebx, ecx
call fcn.1000e250
xor esi, esi
add esp, 4
cmp dword [ebx + 0x1c], esi
jne 0x1000508e
lea eax, [esi + 3]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x24]
cmp eax, esi
je 0x100051b3
cmp dword [ebx + 0x28], esi
je 0x100051af
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [0x100354d8]
mov ecx, dword [eax + 0xb4]
xor ebp, ebp
call ecx
test eax, eax
je 0x100050f8
mov edx, dword [0x100354d8]
mov eax, dword [edx + 0xb0]
call eax
test eax, eax
je 0x100050f8
mov ebp, 5
jmp 0x10005127
mov ecx, dword [0x100354d8]
mov edx, dword [ecx + 0xb4]
call edx
test eax, eax
je 0x10005111
mov ebp, 9
jmp 0x10005127
mov eax, dword [0x100354d8]
mov ecx, dword [eax + 0xb0]
call ecx
test eax, eax
je 0x10005127
mov ebp, 3
mov eax, dword [0x100354d8]
mov ecx, dword [eax + 0x16c]
lea edx, [esp + 0x10]
push edx
call ecx
cmp eax, 1
jne 0x10005168
cmp dword [esp + 0x30], ebp
je 0x10005168
mov edx, dword [0x100354d8]
sub esp, 0x28
mov dword [esp + 0x58], ebp
mov eax, dword [edx + 0x2d8]
mov edi, esp
mov ecx, 0xa
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
call eax
xor esi, esi
mov ecx, dword [0x100354d8]
mov edx, dword [ecx + 0x228]
push ebp
call edx
mov eax, dword [0x100354e0]
mov edx, dword [0x100354d8]
push esi
mov dword [eax + 0x176c], esi
mov ecx, dword [ebx + 0x54]
mov eax, dword [edx + 4]
push 0x10005af0
push ecx
call eax
push eax
push str._WJRA____CWjraConfig::SwitchStaMode_chong_chaba_zhuang_tai_RAWL_AdapterSelect_return_is__d_
call fcn.1000e250
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, esi
jne 0x100051c5
push ebx
call fcn.10005df0
cmp eax, esi
je 0x10005235
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
call fcn.10006630
mov eax, dword [ebx + 0x4c]
cmp eax, 0x29
jae 0x100051e7
mov eax, ebx
call fcn.10006030
cmp eax, esi
je 0x10005235
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x30
jb 0x100051f6
cmp eax, 0x31
jbe 0x10005235
cmp eax, 0x36
ja 0x10005235
call fcn.100030a0
mov ecx, dword [ebx + 0x58]
mov dword [ebx + 0x3c], esi
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [ebx + 0x58]
mov dword [ebx + 0x28], 1
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebx + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebx + 0x58]
cmp ecx, esi
je 0x10005232
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebx + 0x58], esi
push ebx
call fcn.10006960
push esi
push esi
push ebx
push 0x10006a70
push esi
push esi
mov dword [ebx + 8], esi
call fcn.1000f1df
add esp, 0x18
mov dword [0x100354c4], eax
cmp eax, esi
je 0x1000527d
mov ecx, dword [0x100354b4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push str._WJRA____CWjraConfig::SwitchStaMode_return_WJ_STATUS_SUCCESS__n
call fcn.1000e250
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push str._WJRA____CWjraConfig::SwitchStaMode_Creat_QueryEventThread_Failed__return_WJ_STATUS_UNKNOWN_ERROR__n
call fcn.1000e250
add esp, 4
pop edi
mov eax, 0xc
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret