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

Disassembly:
push 0xffffffffffffffff
push 0x592c8c
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1f4]
mov dword fs:[0], eax
xor ebx, ebx
or eax, 0xffffffff
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], vtable.BkJson::Document.0
mov dword [esp + 0x60], vtable.BkJson::Error.0
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x204]
lea edx, [esp + 0x54]
mov dword [esp + 0x1fc], ebx
mov ecx, dword [eax + 0x444]
push edx
call fcn.00484f30
test eax, eax
je 0x52027d
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x51fa6b
mov ecx, dword [eax + 0xc]
cmp ecx, 7
jne 0x51fa61
mov eax, dword [eax + 0x18]
jmp 0x51fa6d
cmp ecx, 2
jne 0x51fa6b
mov eax, dword [eax + 0x18]
jmp 0x51fa6d
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
jle 0x5201d7
lea ecx, [ecx]
mov eax, dword [esp + 0x34]
push eax
lea edi, [esp + 0x3c]
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], ebx
call fcn.00485980
mov byte [esp + 0x1fc], 1
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1fc], 2
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x1fc], 3
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x1fc], 4
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov ecx, edi
push ecx
mov ebx, 0x5bb7a0
lea eax, [esp + 0xb4]
mov byte [esp + 0x200], 5
call fcn.004830d0
mov byte [esp + 0x1fc], 6
mov eax, dword [eax + 8]
test eax, eax
je 0x51fb4e
cmp dword [eax + 0xc], 4
jne 0x51fb4e
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x51fb54
xor ecx, ecx
jmp 0x51fb6f
xor eax, eax
xor ecx, ecx
jmp 0x51fb6f
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x51fb60
sub ecx, esi
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x30]
call fcn.00480ff0
mov byte [esp + 0x1fc], 5
lea edx, [esp + 0xf0]
mov dword [esp + 0xb0], vtable.BkJson::Handle.0
mov dword [esp + 0xec], edx
call dword [section..data]
push eax
mov eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0xf4]
call fcn.00479fa0
mov byte [esp + 0x1fc], 7
mov edx, dword [esp + 0xec]
test edx, edx
jne 0x51fbcb
xor eax, eax
jmp 0x51fbdb
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x51fbd0
sub eax, esi
mov edi, eax
push edx
lea eax, [esp + 0x24]
call fcn.00472930
mov byte [esp + 0x1fc], 5
mov eax, dword [esp + 0xec]
lea ecx, [esp + 0xf0]
cmp eax, ecx
je 0x51fc0a
push eax
call fcn.00566eaf
add esp, 4
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x24]
call fcn.004b2810
add esp, 4
mov byte [esp + 0x1fc], 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x51fc75
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x51fc64
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x51fc64
call fcn.004796e0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x51fc5b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x1c], ebp
jmp 0x51fc75
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.00472930
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0x1fc], 5
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51fc9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xf0]
mov dword [esp + 0xec], ecx
call dword [section..data]
push eax
push ebp
lea eax, [esp + 0xf4]
call fcn.0047a110
mov byte [esp + 0x1fc], 9
mov edx, dword [esp + 0xec]
test edx, edx
jne 0x51fcd6
xor eax, eax
jmp 0x51fcef
mov eax, edx
lea esi, [eax + 2]
jmp 0x51fce0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51fce0
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00480ff0
mov byte [esp + 0x1fc], 5
mov eax, dword [esp + 0xec]
lea edx, [esp + 0xf0]
cmp eax, edx
je 0x51fd1e
push eax
call fcn.00566eaf
add esp, 4
mov esi, dword [esp + 0x204]
mov eax, dword [esi + 0x5a0]
add esi, 0x598
xor edx, edx
cmp eax, edx
jne 0x51fd8e
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x5a9984
lea eax, [esp + 0x9c]
call fcn.004830d0
mov ebp, eax
mov byte [esp + 0x1fc], 0xc
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x51ff83
mov eax, dword [ebp + 8]
test eax, eax
je 0x51ff83
mov edx, dword [ecx + 0xc]
xor esi, esi
cmp edx, 2
jne 0x51ff3e
push 4
push eax
mov eax, ecx
call fcn.00484bf0
jmp 0x51ff4a
mov ecx, dword [eax + 0xc]
cmp ecx, 7
je 0x51fd9b
cmp ecx, 2
jne 0x51fd37
mov ebp, dword [eax + 0x18]
cmp ebp, edx
mov dword [esp + 0x18], ebp
jle 0x51fd3b
jmp 0x51fdb0
mov eax, dword [esp + 0x28]
push eax
lea edi, [esp + 0xd8]
mov ecx, esi
call fcn.00485980
push eax
mov ebx, 0x5a9984
lea eax, [esp + 0xc0]
mov byte [esp + 0x200], 0xa
call fcn.004830d0
mov byte [esp + 0x1fc], 0xb
mov eax, dword [eax + 8]
test eax, eax
je 0x51fdf7
cmp dword [eax + 0xc], 4
jne 0x51fdf7
mov eax, dword [eax + 0x14]
jmp 0x51fdf9
xor eax, eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00481430
mov byte [esp + 0x1fc], 5
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov ebx, vtable.BkJson::Handle.0
push edi
push edx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xdc], ebx
call fcn.005645c3
add esp, 8
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x30]
je 0x51fe6e
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51fe56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, ebp
mov dword [esp + 0x28], eax
jl 0x51fdb0
jmp 0x51fd3b
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51fe87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], ebp
jge 0x51fd3b
mov byte [esp + 0x1fc], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51feb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1fc], 3
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 0x51fee1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x1fc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51ff05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1fc], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51ff2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1fc], 0
mov dword [esp + 0x38], ebx
jmp 0x5201c0
cmp edx, 7
jne 0x51ff80
push 4
call fcn.004844c0
mov esi, eax
test esi, esi
je 0x51ff80
cmp dword [esp + 0x14], 0
lea eax, [esi + 0x14]
jne 0x51ff5e
xor ecx, ecx
jmp 0x51ff74
mov ecx, dword [esp + 0x14]
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x51ff65
sub ecx, edi
sar ecx, 1
mov edx, dword [esp + 0x14]
push edx
mov ebx, ecx
call fcn.00480ff0
mov dword [ebp + 8], esi
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x200], 5
mov ebp, vtable.BkJson::Handle.0
mov ebx, 0x5af6d8
lea eax, [esp + 0xe4]
mov dword [esp + 0x9c], ebp
call fcn.004830d0
mov edi, eax
mov byte [esp + 0x1fc], 0xd
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x520000
mov esi, dword [edi + 8]
test esi, esi
je 0x520000
mov edx, dword [ecx + 0xc]
xor eax, eax
cmp edx, 2
jne 0x51ffdb
push 5
push esi
mov eax, ecx
call fcn.00484bf0
jmp 0x51ffe9
cmp edx, 7
jne 0x51fffd
push 5
mov eax, esi
call fcn.004844c0
test eax, eax
je 0x51fffd
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx*4 + 0xa0]
add ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [edi + 8], eax
lea edx, [esp + 0x38]
mov byte [esp + 0x1fc], 5
push edx
mov ebx, str.open
lea eax, [esp + 0xcc]
mov dword [esp + 0xe4], ebp
call fcn.004830d0
mov edi, eax
mov byte [esp + 0x1fc], 0xe
mov ecx, dword [edi + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x520071
mov esi, dword [edi + 8]
cmp esi, ebx
je 0x520071
mov edx, dword [ecx + 0xc]
xor eax, eax
cmp edx, 2
jne 0x520055
push 5
push esi
mov eax, ecx
call fcn.00484bf0
jmp 0x520063
cmp edx, 7
jne 0x52006e
push 5
mov eax, esi
call fcn.004844c0
cmp eax, ebx
je 0x52006e
mov dword [eax + 0x14], 1
mov dword [edi + 8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x204]
mov byte [esp + 0x1fc], 5
push eax
lea edi, [esp + 0xa8]
add ecx, 0x598
mov dword [esp + 0xcc], ebp
call fcn.00485980
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
or esi, 0xffffffff
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], vtable.BkJson::Error.0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x70], vtable.kvip::json::document.0
mov dword [esp + 0x8c], vtable.kvip::json::handle.0
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x204], 0x11
call fcn.0044ae00
mov dword [esp + 0x48], ebp
mov byte [esp + 0x1fc], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0xa4], ebp
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x520142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1fc], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x520169
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1fc], 2
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 0x520190
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1fc], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x5201b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1fc], bl
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x34]
add eax, 1
xor ebx, ebx
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
jl 0x51fa80
mov edi, dword [esp + 0x204]
mov ecx, edi
call fcn.005202b0
mov ecx, dword [edi + 0x728]
cmp ecx, ebx
jne 0x5201f3
xor eax, eax
jmp 0x5201fe
mov eax, dword [edi + 0x72c]
sub eax, ecx
sar eax, 2
lea esi, [edi + 0x5b8]
mov edx, dword [esi + 0x94]
lea ecx, [esi + 0x94]
push 1
push eax
mov eax, dword [edx + 0x10]
call eax
call fcn.00493130
lea eax, [edi + 0x50]
cmp eax, ebx
je 0x520229
lea esi, [eax - 0x24]
jmp 0x52022b
xor esi, esi
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x54]
lea ecx, [esi + 0x24]
push 0x88
call eax
cmp eax, ebx
jne 0x520273
mov edx, dword [esi + 0xf8]
mov eax, dword [edx + 0x54]
lea ecx, [esi + 0xf8]
push 0x88
call eax
cmp eax, ebx
jne 0x520273
mov edx, dword [esi + 0x1cc]
mov eax, dword [edx + 0x54]
lea ecx, [esi + 0x1cc]
push 0x88
call eax
cmp eax, ebx
je 0x52027d
mov edi, 1
call fcn.004ab840
lea ecx, [esp + 0x54]
mov dword [esp + 0x1fc], 0xffffffff
call fcn.00484ec0
mov ecx, dword [esp + 0x1f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret 4