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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp + 8]
lea ebx, [esi + 8]
mov dword [ebp - 8], ebx
test cl, 1
je 0x422af9
mov eax, dword [edi + 0x144]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x422af9
mov ecx, dword [ebx]
cmp ecx, dword [eax + 0xc]
je 0x422e07
mov eax, dword [eax + 4]
test eax, eax
jne 0x422ae4
mov ecx, dword [ebp + 0x10]
jmp 0x422afc
mov dword [ebp - 8], ebx
test cl, 2
je 0x422b2d
mov ecx, edi
call fcn.004010d0
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x422b27
mov ecx, dword [ebx]
cmp ecx, dword [eax + 0xc]
je 0x422e07
mov eax, dword [eax + 4]
test eax, eax
jne 0x422b17
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
test cl, 4
je 0x422b78
cmp dword [ebp + 0x14], 0
je 0x422b3e
mov eax, dword [edx]
test eax, eax
jne 0x422b56
mov eax, dword [0x4f7d20]
push edi
mov ecx, dword [eax + 0x56f84]
mov ecx, dword [ecx + 4]
call fcn.00468a10
test eax, eax
je 0x422b75
mov ecx, eax
call fcn.0042b9d0
test eax, eax
je 0x422b75
push esi
push dword [eax + 0x98]
call fcn.00422e70
test eax, eax
jne 0x422e07
mov ecx, dword [ebp + 0x10]
test cl, 8
je 0x422d43
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edx
add edi, 0x1fc
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
test eax, eax
je 0x422d23
cmp dword [eax + 0x24], 0
jl 0x422e15
cmp dword [eax + 0x2c], 0
jl 0x422e15
cmp dword [eax + 0x88], 0
jl 0x422e15
cmp dword [eax + 0x90], 0
jl 0x422e15
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x422bde
cmp ecx, 1
je 0x422bde
cmp ecx, 2
je 0x422bde
xor ecx, ecx
jmp 0x422be3
mov ecx, 1
test ecx, ecx
je 0x422e15
cmp dword [eax + 0x20], 0
je 0x422d23
mov eax, dword [0x4f7f30]
mov ebx, 1
mov eax, dword [eax + 0x204]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x422cf8
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 0x1fc]
mov eax, dword [eax + 0x8c]
cmp dword [ecx + 8], eax
je 0x422c34
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x422c23
jmp 0x422cf8
cmp dword [ecx + 0x3c], 0
je 0x422cf8
test edx, edx
jne 0x422c51
mov ecx, str.Array
call fcn.0046a880
mov edx, eax
mov dword [ebp - 4], edx
mov ecx, dword [0x4f7d20]
mov eax, 9
mov ecx, dword [ecx + 0x56f84]
mov word [ebp - 0x48], ax
mov word [ebp - 0x58], ax
mov eax, dword [edi]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x14], str.ScriptCall_isItemReused
mov eax, dword [eax + 0xb4]
mov esi, dword [ecx]
lea ecx, [ebp - 0x18]
push ecx
push 0x400
push 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [esi]
push ecx
push 0x4bb530
push esi
call dword [eax + 0x14]
test eax, eax
js 0x422cde
push 0
push 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 2
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0
push ecx
push 1
push 0x800
lea eax, [ebp - 0x58]
mov dword [ebp - 0x24], 0
push 0x4bb530
push dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
cmp word [ebp - 0x38], 0xb
jne 0x422cf3
xor eax, eax
cmp word [ebp - 0x30], 0xffff
sete al
test eax, eax
jne 0x422cf5
xor ebx, ebx
mov esi, dword [ebp - 0x10]
mov edx, dword [edi]
mov eax, dword [edx + 0x98]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x422d20
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
nop
cmp ecx, dword [eax + 0xc]
je 0x422deb
mov eax, dword [eax + 4]
test eax, eax
jne 0x422d10
mov edx, dword [ebp - 4]
inc esi
add edi, 4
mov dword [ebp - 0x10], esi
cmp esi, 0x14
jl 0x422b91
test edx, edx
je 0x422d3d
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 8]
test cl, 0x20
je 0x422db3
mov eax, dword [edi + 0x24c]
mov eax, dword [eax + 4]
mov edx, dword [eax + 4]
test edx, edx
je 0x422db3
mov ecx, 5
call fcn.00489c60
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
nop dword [eax + eax]
mov eax, esi
test eax, eax
je 0x422d8c
mov ecx, dword [edx + 0x14]
nop dword [eax]
cmp dword [eax + 8], ecx
je 0x422d8e
mov eax, dword [eax + 4]
test eax, eax
jne 0x422d80
xor eax, eax
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x422dac
mov ecx, dword [ebx]
nop dword [eax]
cmp ecx, dword [eax + 0xc]
je 0x422e07
mov eax, dword [eax + 4]
test eax, eax
jne 0x422da0
mov edx, dword [edx + 4]
test edx, edx
jne 0x422d70
cmp dword [ebp + 0x14], 0
je 0x422de0
mov eax, dword [0x4f7f30]
mov eax, dword [eax + 0x278]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x422de0
mov ecx, dword [edi + 0x274]
cmp dword [eax + 8], ecx
je 0x422e20
mov eax, dword [eax + 4]
test eax, eax
jne 0x422dd4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
je 0x422d20
mov ecx, dword [ebp - 0xc]
push edx
push dword [ebp + 8]
call fcn.004229e0
test eax, eax
je 0x422d20
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [edi], 0
jmp 0x422d23
mov esi, dword [eax + 0x1f4]
test esi, esi
je 0x422de0
mov eax, dword [edi + 0x278]
cmp eax, 0xfffffffe
je 0x422de0
mov ecx, dword [0x4f7d20]
push eax
call fcn.0040cd10
test eax, eax
je 0x422de0
mov ecx, dword [ebp - 0xc]
push 0
push esi
push dword [ebp + 0xc]
push eax
call fcn.00422ab0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10