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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [ecx]
mov dword [esp + 0x34], edx
and eax, 3
cmp eax, 2
je 0x1004bbe0
cmp eax, 3
jne 0x1004bb10
mov eax, dword [ecx + 8]
test eax, eax
jne 0x1004bb20
mov dword [ebx + 8], 0x8007000e
mov eax, dword [esp + 0x30]
lea esp, [ebp - 0xc]
mov edx, 0x7ff90001
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ecx
call sym._jsstr_rope_flatten
test eax, eax
je 0x1004baee
lea esi, [esi]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x54]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._jsdisp_propget_name
mov dword [ebx + 8], eax
test eax, eax
js 0x1004baf5
cmp dword [esp + 0x58], 0x7ff90003
je 0x1004bbf0
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x4c], edi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x50], 0x7ff90004
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x7ff90003
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._disp_call_value_with_caller
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._jsval_release
mov eax, dword [ebx + 8]
test eax, eax
js 0x1004baf5
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ecx + 8]
jmp 0x1004bb20
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sym._to_jsdisp
mov esi, eax
test eax, eax
je 0x1004bec8
mov eax, dword [eax + 0x20]
cmp dword [eax], 1
je 0x1004bd68
mov dword [esp + 0x3c], 0xffffffff
mov eax, 0xffffffff
lea ecx, [esp + 0x3c]
mov dword [esp + 8], 2
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._jsdisp_next_prop
mov dword [ebx + 8], eax
cmp eax, 1
je 0x1004bb4d
test eax, eax
js 0x1004bba4
lea eax, [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call sym._jsdisp_get_prop_name
mov dword [ebx + 8], eax
test eax, eax
js 0x1004bba4
mov ecx, dword [esp + 0x38]
mov edx, esi
mov eax, ebx
call sym._transform_json_object
mov dword [esp + 0x48], edx
cmp dword [esp + 0x48], 0x7ff90001
mov dword [esp + 0x44], eax
je 0x1004bd20
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
and edx, 3
cmp edx, 2
je 0x1004bcf0
cmp edx, 3
jne 0x1004bd58
mov eax, dword [eax + 8]
test eax, eax
jne 0x1004bcf3
mov dword [ebx + 8], 0x8007000e
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._jsval_release
mov edx, dword [esp + 0x38]
sub dword [edx + 4], 1
je 0x1004bd48
mov edx, dword [ebx + 8]
test edx, edx
js 0x1004bba4
mov eax, dword [esp + 0x3c]
jmp 0x1004bc1f
add eax, 8
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], 0x1c00
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp], esi
call sym._jsdisp_define_data_property
mov dword [ebx + 8], eax
jmp 0x1004bcba
mov ecx, dword [ebx + 8]
test ecx, ecx
js 0x1004bcce
lea eax, [esp + 0x40]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call sym._disp_delete
mov dword [ebx + 8], eax
jmp 0x1004bcce
mov dword [esp], edx
call sym._jsstr_free
jmp 0x1004bcd8
mov dword [esp], eax
call sym._jsstr_rope_flatten
jmp 0x1004bcaf
mov dword [esp], esi
call sym._array_get_length
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x7a], dx
test eax, eax
je 0x1004bb4d
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], esi
mov esi, ecx
nop
lea eax, [esp + 0x78]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._idx_to_str
cmp word [eax], 0
mov edi, eax
je 0x1004bee0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1004bdb0
sub eax, edi
sar eax, 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._jsstr_alloc_len
mov dword [esp + 0x38], eax
mov ecx, eax
test eax, eax
je 0x1004bf15
mov edx, dword [esp + 0x2c]
mov eax, ebx
call sym._transform_json_object
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
sub dword [edx + 4], 1
je 0x1004beb8
cmp dword [esp + 0x48], 0x7ff90001
jne 0x1004be70
mov eax, dword [ebx + 8]
test eax, eax
js 0x1004bba4
lea eax, [esp + 0x3c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._jsdisp_get_id
test eax, eax
js 0x1004be58
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._disp_delete
mov dword [ebx + 8], eax
test eax, eax
js 0x1004bba4
add esi, 1
cmp dword [esp + 0x28], esi
jne 0x1004bd90
mov edi, dword [esp + 0x24]
jmp 0x1004bb4d
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 8], 0x1c00
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call sym._jsdisp_define_data_property
mov edx, dword [esp + 0x48]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._jsval_release
mov eax, dword [ebx + 8]
jmp 0x1004be50
mov dword [esp], edx
call sym._jsstr_free
jmp 0x1004bdf8
test byte [0x1008a1a8], 1
jne 0x1004bee7
mov dword [ebx + 8], 0x80004001
jmp 0x1004bba4
xor eax, eax
jmp 0x1004bdbd
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], 0x10095660
mov dword [esp + 8], str.transform_json_object
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1008a1a8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_13
jmp 0x1004bed1
mov dword [ebx + 8], 0x8007000e
jmp 0x1004bba4