Function at 0x5235b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x595ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor edi, edi
or esi, 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], vtable.BkJson::Document.0
mov dword [esp + 0x48], vtable.BkJson::Error.0
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x3c]
mov dword [esp + 0x80], edi
mov ecx, dword [eax]
push edx
call fcn.00485270
test eax, eax
je 0x523861
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x523861
mov ecx, dword [eax + 0xc]
cmp ecx, 2
jne 0x523861
push 0x5b3dc0
lea ecx, [eax + 0x14]
call fcn.00485f30
neg eax
sbb eax, eax
neg eax
cmp eax, edi
je 0x523861
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x5b3dc0
lea edi, [esp + 0x40]
call fcn.00485900
mov eax, dword [eax + 8]
test eax, eax
je 0x52367f
cmp dword [eax + 0xc], 5
jne 0x52367f
mov eax, dword [eax + 0x14]
jmp 0x523681
xor eax, eax
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
test eax, eax
je 0x523861
mov eax, dword [esp + 0x44]
test eax, eax
je 0x523861
cmp dword [eax + 0xc], 2
jne 0x523861
push 0x5bb938
lea ecx, [eax + 0x14]
call fcn.00485f30
neg eax
sbb eax, eax
neg eax
je 0x523861
lea edx, [esp + 0x20]
push edx
mov ebx, 0x5bb938
lea edi, [esp + 0x40]
call fcn.00485900
mov byte [esp + 0x80], 1
mov eax, dword [eax + 8]
xor ebx, ebx
cmp eax, ebx
je 0x5236f1
cmp dword [eax + 0xc], 4
jne 0x5236f1
mov eax, dword [eax + 0x14]
jmp 0x5236f3
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00481430
mov byte [esp + 0x80], 3
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], ebx
mov dword [esp + 0x20], vtable.BkJson::Handle.0
je 0x5237dc
lea eax, [esp + 0x18]
push eax
mov ecx, 0x5aead8
call fcn.00481430
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x90], 4
call fcn.0047b540
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 6
call fcn.004818c0
lea ecx, [esp + 0x14]
push ecx
lea esi, [esp + 0x5c]
call fcn.00523ba0
test eax, eax
je 0x5237c0
jmp 0x523770
lea edx, [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push edx
lea ebx, [esp + 0x30]
call fcn.005231e0
test eax, eax
je 0x5237b3
mov esi, dword [ebp + 8]
add esi, 4
call fcn.00523c00
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x5c]
call fcn.00523ba0
xor ebx, ebx
test eax, eax
jne 0x523770
jmp 0x5237c0
mov edi, dword [ebp + 8]
add edi, 4
call fcn.00523c80
xor ebx, ebx
mov esi, dword [ebp + 8]
call fcn.005234f0
lea eax, [esp + 0x58]
mov byte [esp + 0x80], 3
call fcn.004679a0
or esi, 0xffffffff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x52383b
mov ecx, dword [ecx + 0xc]
sub ecx, eax
sar ecx, 4
je 0x52383b
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x5aa300
lea edi, [esp + 0x40]
call fcn.00485900
mov byte [esp + 0x80], 7
mov eax, dword [eax + 8]
test eax, eax
je 0x52381d
cmp dword [eax + 0xc], 4
jne 0x52381d
mov eax, dword [eax + 0x14]
jmp 0x52381f
xor eax, eax
mov edi, dword [ebp + 8]
mov edx, eax
call fcn.00481720
mov dword [esp + 0x2c], vtable.BkJson::Handle.0
mov dword [esp + 0x1c], 1
xor ebx, ebx
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x523861
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x80], esi
call fcn.00484ec0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8