Function at 0x5163470
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x522e898
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
movzx edi, word [esp + 0x68]
movzx esi, word [esp + 0x74]
lea eax, [esp + 0x17]
push eax
xor ebx, ebx
push edi
mov dword [esp + 0x24], ebx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x74]
push eax
push str.type
push esi
mov esi, dword [esp + 0x74]
push ecx
push esi
call fcn.05019e10
add esp, 0x18
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xa800
mov edx, dword [eax + 0x28]
lea ebp, [eax + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
mov dword [esp + 0x5c], ebx
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movzx ebx, byte [esp + 0x17]
mov edx, dword [eax + 0xa800]
mov edx, dword [edx]
lea ecx, [eax + 0xa800]
mov eax, dword [esp + 0x6c]
push eax
push ebx
push edi
lea eax, [esp + 0x48]
push eax
call edx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
test ecx, ecx
jne 0x5163574
mov dword [esp + 0x5c], 0xffffffff
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov dword [esp + 0x5c], 0xffffffff
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
cmp dword [esp + 0x30], 0
jne 0x5163625
push str._ERROR:
push 0xff
push 0x108
push str..FunctionPlatformMETA_util_cmd.cpp
lea ecx, [esp + 0x34]
call fcn.051ae270
mov ebp, eax
mov dword [esp + 0x5c], 1
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [ebx*4 + 0x527eca0]
mov ecx, dword [eax + 8]
push ebx
push edx
push edi
push edi
mov dword [esp + 0x84], ecx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x80]
push eax
movsx eax, word [esp + 0x7c]
push eax
push esi
push str.__d__FtTaskUtilCmd_Cnf_token_d_:__s__d____s__d_:_cnf_is_NULL_
push ecx
push ebp
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.051ae2c0
mov eax, 4
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
cmp dword [esp + 0x78], 0
je 0x516366b
mov ax, word [esp + 0x7c]
xor edx, edx
cmp dx, ax
jae 0x516366b
movzx ebp, ax
push esi
mov dword [esp + 0x1c], ebp
call fcn.051a87a0
add esp, 4
cmp eax, ebp
jge 0x516366b
push esi
call fcn.051a87a0
mov ebp, eax
add ebp, dword [esp + 0x7c]
push esi
call fcn.051a87a0
mov ecx, dword [esp + 0x20]
add esp, 8
sub ecx, eax
mov eax, ecx
jmp 0x5163671
mov eax, dword [esp + 0x1c]
mov ebp, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x6c]
push eax
movzx eax, word [esp + 0x7c]
push ebp
push eax
mov eax, dword [esp + 0x7c]
push edx
push eax
push ebx
push ecx
push esi
call dword [esp + 0x50]
push 0x52c722a
push 1
push 0x115
push str..FunctionPlatformMETA_util_cmd.cpp
lea ecx, [esp + 0x34]
call fcn.051ae270
mov ebp, eax
mov dword [esp + 0x5c], 2
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [eax + 8]
mov eax, dword [ebx*4 + 0x527eca0]
push ebx
push eax
push edi
push edi
mov dword [esp + 0x84], edx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
movsx ecx, word [esp + 0x78]
mov edx, dword [esp + 0x80]
push eax
push ecx
push esi
push str.__d__FtTaskUtilCmd_Cnf_token_d_:__s__d____s__d_:_callback_OK.
push edx
push ebp
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.051ae2c0
mov eax, 6
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret