Function at 0x405150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59f860
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x194]
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
mov ecx, 0x5adcfc
mov dword [esp + 0x1c], ebx
call fcn.00481430
lea ecx, [esp + 0x2c]
push ecx
mov ecx, str.pageparam
mov dword [esp + 0x190], ebx
call fcn.00481430
mov byte [esp + 0x18c], 1
call fcn.0046b3e0
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x30]
lea esi, [esp + 0x20]
call fcn.00478b30
mov byte [esp + 0x18c], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4051f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18c], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40521e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push 0
push ecx
lea esi, [esp + 0x28]
call fcn.00478b50
add esp, 8
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x190], 5
call fcn.004801d0
mov byte [esp + 0x18c], 6
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
je 0x4054c6
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x38]
jne 0x4054c6
mov edx, dword [esp + 0x50]
cmp edx, dword [esp + 0x34]
jne 0x4054c6
lea eax, [esp + 0x30]
push eax
call fcn.00484f30
test eax, eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
je 0x4054c6
lea eax, [esp + 0x18]
push eax
mov ecx, str.host
call fcn.00481430
push 0
lea edi, [esp + 0x1c]
lea ecx, [esp + 0x34]
mov byte [esp + 0x190], 9
call fcn.0047dce0
mov dword [ebp + 0x10], eax
mov byte [esp + 0x18c], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405418
call fcn.0047f920
test eax, eax
mov byte [esp + 0x18c], 0xa
je 0x405390
cmp dword [eax + 0x24], 4
jg 0x405390
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0xd8]
push eax
mov dword [esp + 0x28], edx
call fcn.0041c690
mov esi, eax
push 4
push str.KGamePageApp::Run
push 0x1f
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxgamepage_kgamepageapp.h
lea ecx, [esp + 0x68]
mov byte [esp + 0x19c], 0xb
push ecx
mov dword [esp + 0x2c], 2
call fcn.0047f220
mov edi, eax
lea edx, [esp + 0x24]
mov dword [esp + 0x18c], 0xc
mov ebx, 6
push edx
mov eax, esi
mov dword [esp + 0x1c], ebx
call fcn.0041f020
add esp, 4
push 0x5aa8fc
push edi
mov esi, eax
call fcn.0047f6e0
push eax
mov ecx, esi
call fcn.005382c0
add esp, 0xc
test bl, 4
mov dword [esp + 0x18c], 0xb
je 0x4053b1
lea eax, [esp + 0x58]
and ebx, 0xfffffffb
push eax
mov dword [esp + 0x1c], ebx
call fcn.0047eb40
test bl, 2
mov dword [esp + 0x18c], 0xa
je 0x4053ce
lea ecx, [esp + 0xd8]
push ecx
call fcn.00404170
mov eax, dword [0x5f9180]
test eax, eax
je 0x4053de
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x18c], 5
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], vtable.BkJson::Handle.0
call fcn.00484ec0
mov byte [esp + 0x18c], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40557e
sub esp, 0x28
mov ecx, esp
mov dword [esp + 0x4c], esp
lea edx, [esp + 0x58]
push edx
push ecx
call fcn.00478a70
push ebp
call fcn.00405880
test eax, eax
je 0x405496
lea eax, [esp + 0x24]
push eax
mov ecx, str.subpipe
call fcn.00481430
push 0
lea edi, [esp + 0x28]
lea ecx, [esp + 0x34]
mov byte [esp + 0x190], 0xd
call fcn.0047dce0
cmp eax, 1
mov ecx, edi
sete bl
mov byte [esp + 0x18c], 6
call fcn.004818c0
test bl, bl
je 0x405487
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [ebp + 0x28]
push ecx
mov dword [ebp + 0x30], eax
call fcn.00404f20
push ebp
call fcn.00405730
add ebp, 0x28
push ebp
call fcn.00404fc0
mov byte [esp + 0x18c], 5
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], vtable.BkJson::Handle.0
call fcn.00484ec0
lea ecx, [esp + 0x20]
call fcn.004818c0
lea ecx, [esp + 0x1c]
call fcn.004818c0
jmp 0x4055b5
call fcn.0047f920
test eax, eax
mov byte [esp + 0x18c], 7
je 0x40551f
cmp dword [eax + 0x24], 4
jg 0x40551f
push 4
push str.KGamePageApp::Run
push 0x18
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxgamepage_kgamepageapp.h
lea edx, [esp + 0x68]
push edx
call fcn.0047f220
push 0x5aa7c4
mov byte [esp + 0x190], 8
mov ebx, 1
push eax
mov dword [esp + 0x20], ebx
call fcn.0047f6e0
mov ecx, dword [esp + 0x24]
push ecx
push eax
call fcn.0047f6e0
add esp, 0x10
test bl, 1
mov dword [esp + 0x18c], 7
je 0x405539
lea edx, [esp + 0x58]
push edx
call fcn.0047eb40
mov eax, dword [0x5f9180]
test eax, eax
je 0x405549
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x18c], 5
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], vtable.BkJson::Handle.0
call fcn.00484ec0
mov byte [esp + 0x18c], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40558a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 4