Function at 0x512c0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5229f58
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
mov esi, dword [esp + 0x64]
xor ebx, ebx
push esi
mov ecx, 0x53f4cc8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.05065960
add eax, 0xa800
lea edi, [eax + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov dword [esp + 0x5c], ebx
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ebx, dword [esp + 0x6c]
movzx ebp, word [esp + 0x68]
push ebx
lea ecx, [eax + 0xa800]
mov eax, dword [ecx]
mov eax, dword [eax]
push 0
push ebp
lea edx, [esp + 0x48]
push edx
call eax
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 0x512c179
mov dword [esp + 0x5c], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
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
cmp dword [esp + 0x30], 0
jne 0x512c21c
push str._ERROR:
push 0xff
push 0xe6
push str..FunctionPlatformBaseBand.cpp
lea ecx, [esp + 0x34]
call fcn.051ae270
mov dword [esp + 0x1c], eax
mov byte [esp + 0x5c], 1
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [eax + 8]
push 0
push 0
push ebp
push ebp
mov dword [esp + 0x78], ecx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x78]
movsx edx, bx
push edx
push esi
push str.__d__PMIC_Cnf_token_d_:__s__d_____d_:_cnf_is_NULL_._cnf_0x_08X_.
push eax
push ecx
call fcn.051ae2d0
add esp, 0x24
mov byte [esp + 0x5c], 0
lea ecx, [esp + 0x24]
call fcn.051ae2c0
mov dword [esp + 0x5c], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
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 0x512c266
mov ax, word [esp + 0x7c]
xor ecx, ecx
cmp cx, ax
jae 0x512c266
movzx edx, ax
push esi
mov dword [esp + 0x18], edx
call fcn.051a87a0
add esp, 4
cmp eax, dword [esp + 0x14]
jge 0x512c266
push esi
call fcn.051a87a0
add eax, dword [esp + 0x7c]
push esi
mov dword [esp + 0x24], eax
call fcn.051a87a0
mov ecx, dword [esp + 0x1c]
add esp, 8
sub ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
movzx eax, word [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push ebx
push 0
push edx
push esi
call dword [esp + 0x50]
push 0x52c722a
push 1
push 0xef
push str..FunctionPlatformBaseBand.cpp
lea ecx, [esp + 0x34]
call fcn.051ae270
mov dword [esp + 0x1c], eax
mov byte [esp + 0x5c], 2
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0
push ebp
push ebp
mov dword [esp + 0x74], eax
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x28]
movsx ecx, bx
push ecx
push esi
push str.__d__PMIC_OP_Cnf_token_d_:__s__d_____d_:_callback_OK.
push edx
push eax
call fcn.051ae2d0
add esp, 0x20
mov byte [esp + 0x5c], 0
lea ecx, [esp + 0x24]
call fcn.051ae2c0
mov dword [esp + 0x5c], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
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